Options
All
  • Public
  • Public/Protected
  • All
Menu

Performs logging of the events in TypeORM via debug library.

Hierarchy

  • DebugLogger

Implements

Index

Properties

Private debug

debug: any = PlatformTools.load("debug")

Private debugInfo

debugInfo: any = this.debug("typeorm:info")

Private debugLog

debugLog: any = this.debug("typeorm:log")

Private debugMigration

debugMigration: any = this.debug("typeorm:migration")

Private debugQueryError

debugQueryError: any = this.debug("typeorm:query:error")

Private debugQueryLog

debugQueryLog: any = this.debug("typeorm:query:log")

Private debugQuerySlow

debugQuerySlow: any = this.debug("typeorm:query:slow")

Private debugSchemaBuild

debugSchemaBuild: any = this.debug("typeorm:schema")

Private debugWarn

debugWarn: any = this.debug("typeorm:warn")

Methods

log

  • log(level: "log" | "info" | "warn", message: any, queryRunner?: QueryRunner): void
  • Perform logging using given logger. Log has its own level and message.

    Parameters

    • level: "log" | "info" | "warn"
    • message: any
    • Optional queryRunner: QueryRunner

    Returns void

logMigration

  • logMigration(message: string, queryRunner?: QueryRunner): void

logQuery

  • logQuery(query: string, parameters?: any[], queryRunner?: QueryRunner): void

logQueryError

  • logQueryError(error: string, query: string, parameters?: any[], queryRunner?: QueryRunner): void

logQuerySlow

  • logQuerySlow(time: number, query: string, parameters?: any[], queryRunner?: QueryRunner): void

logSchemaBuild

  • logSchemaBuild(message: string, queryRunner?: QueryRunner): void

Generated using TypeDoc