Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Logger

Performs logging of the events in TypeORM.

Hierarchy

  • Logger

Implemented by

Index

Methods

log

  • log(level: "log" | "info" | "warn", message: any, queryRunner?: QueryRunner): any
  • Perform logging using given logger, or by default to the console. Log has its own level and message.

    Parameters

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

    Returns any

logMigration

  • logMigration(message: string, queryRunner?: QueryRunner): any
  • Logs events from the migrations run process.

    Parameters

    Returns any

logQuery

  • logQuery(query: string, parameters?: any[], queryRunner?: QueryRunner): any
  • Logs query and parameters used in it.

    Parameters

    • query: string
    • Optional parameters: any[]
    • Optional queryRunner: QueryRunner

    Returns any

logQueryError

  • logQueryError(error: string, query: string, parameters?: any[], queryRunner?: QueryRunner): any
  • Logs query that is failed.

    Parameters

    • error: string
    • query: string
    • Optional parameters: any[]
    • Optional queryRunner: QueryRunner

    Returns any

logQuerySlow

  • logQuerySlow(time: number, query: string, parameters?: any[], queryRunner?: QueryRunner): any
  • Logs query that is slow.

    Parameters

    • time: number
    • query: string
    • Optional parameters: any[]
    • Optional queryRunner: QueryRunner

    Returns any

logSchemaBuild

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

Generated using TypeDoc