Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILogger

Hierarchy

  • ILogger

Index

Methods

  • debug(loggable: Loggable): Promise<void>
  • debug(message: any, ...params: any[]): Promise<void>
  • error(loggable: Loggable): Promise<void>
  • error(message: any, ...params: any[]): Promise<void>
  • fatal(loggable: Loggable): Promise<void>
  • fatal(message: any, ...params: any[]): Promise<void>
  • getLogLevel(): Promise<number>
  • ifDebug(): Promise<void>
  • ifEnabled(logLevel: number): Promise<void>
  • ifError(): Promise<void>
  • ifFatal(): Promise<void>
  • ifInfo(): Promise<void>
  • ifTrace(): Promise<void>
  • ifWarn(): Promise<void>
  • info(loggable: Loggable): Promise<void>
  • info(message: any, ...params: any[]): Promise<void>
  • isDebug(): Promise<boolean>
  • isEnabled(logLevel: number): Promise<boolean>
  • isError(): Promise<boolean>
  • isFatal(): Promise<boolean>
  • isInfo(): Promise<boolean>
  • isTrace(): Promise<boolean>
  • isWarn(): Promise<boolean>
  • log(logLevel: number, loggable: Loggable): Promise<void>
  • log(logLevel: number, message: any, ...params: any[]): void
  • Log a loggable with the given level if it is enabled.

    Parameters

    Returns Promise<void>

  • Log a message with the given level if it is enabled.

    Parameters

    • logLevel: number

      The loglevel to use.

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns void

  • setLogLevel(logLevel: number): Promise<void>
  • trace(loggable: Loggable): Promise<void>
  • trace(message: any, ...params: any[]): Promise<void>
  • warn(loggable: Loggable): Promise<void>
  • warn(message: any, ...params: any[]): Promise<void>