Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILogger

Hierarchy

  • ILogger

Implemented by

Index

Methods

child

debug

  • debug(loggable: Loggable): Promise<void>
  • debug(message: any, ...params: any[]): Promise<void>

error

  • error(loggable: Loggable): Promise<void>
  • error(message: any, ...params: any[]): Promise<void>

fatal

  • fatal(loggable: Loggable): Promise<void>
  • fatal(message: any, ...params: any[]): Promise<void>

getLogLevel

  • getLogLevel(): Promise<number>

ifDebug

  • ifDebug(): Promise<void>

ifEnabled

  • ifEnabled(logLevel: number): Promise<void>

ifError

  • ifError(): Promise<void>

ifFatal

  • ifFatal(): Promise<void>

ifInfo

  • ifInfo(): Promise<void>

ifTrace

  • ifTrace(): Promise<void>

ifWarn

  • ifWarn(): Promise<void>

info

  • info(loggable: Loggable): Promise<void>
  • info(message: any, ...params: any[]): Promise<void>

isDebug

  • isDebug(): Promise<boolean>

isEnabled

  • isEnabled(logLevel: number): Promise<boolean>

isError

  • isError(): Promise<boolean>

isFatal

  • isFatal(): Promise<boolean>

isInfo

  • isInfo(): Promise<boolean>

isTrace

  • isTrace(): Promise<boolean>

isWarn

  • isWarn(): Promise<boolean>

log

  • 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

  • setLogLevel(logLevel: number): Promise<void>

trace

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

warn

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