Interface TkmLogger

Logger.

interface TkmLogger {
    logLevel: LogLevel;
    childLogger(name): TkmLogger;
    debug(...message): void;
    debugObject(message, obj): void;
    debugObject(message, obj, filterFn): void;
    debugText(message, text): void;
    error(...message): void;
    info(...message): void;
    infoObject(message, obj): void;
    infoObject(message, obj, filterFn): void;
    infoText(message, text): void;
    trace(...message): void;
    traceObject(message, obj): void;
    traceObject(message, obj, filterFn): void;
    traceText(message, text): void;
    warn(...message): void;
    warnObject(message, obj): void;
    warnObject(message, obj, filterFn): void;
    warnText(message, text): void;
}

Properties

logLevel: LogLevel

Methods

  • Log messages using debug level.

    Parameters

    • Rest ...message: any[]

      Messages to log

    Returns void

  • Log formatted object using debug level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    Returns void

  • Log formatted object using debug level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    • filterFn: ((obj) => any)

      Function to filter the logged object

        • (obj): any
        • Parameters

          • obj: any

          Returns any

    Returns void

  • Log longer text using debug level.

    Parameters

    • message: string

      Message to log

    • text: string | (() => string)

      Text to log

    Returns void

  • Log messages using error level.

    Parameters

    • Rest ...message: any[]

      Messages to log

    Returns void

  • Log messages using info level.

    Parameters

    • Rest ...message: any[]

      Messages to log

    Returns void

  • Log formatted object using info level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    Returns void

  • Log formatted object using info level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    • filterFn: ((obj) => any)

      Function to filter the logged object

        • (obj): any
        • Parameters

          • obj: any

          Returns any

    Returns void

  • Log longer text using info level.

    Parameters

    • message: string

      Message to log

    • text: string | (() => string)

      Text to log

    Returns void

  • Log messages using trace level.

    Parameters

    • Rest ...message: any[]

      Messages to log

    Returns void

  • Log formatted object using trace level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    Returns void

  • Log formatted object using trace level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    • filterFn: ((obj) => any)

      Function to filter the logged object

        • (obj): any
        • Parameters

          • obj: any

          Returns any

    Returns void

  • Log longer text using trace level.

    Parameters

    • message: string

      Message to log

    • text: string | (() => string)

      Text to log

    Returns void

  • Log messages using warn level.

    Parameters

    • Rest ...message: any[]

      Messages to log

    Returns void

  • Log formatted object using warn level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    Returns void

  • Log formatted object using warn level.

    Parameters

    • message: string

      Message to log

    • obj: any

      Object to log

    • filterFn: ((obj) => any)

      Function to filter the logged object

        • (obj): any
        • Parameters

          • obj: any

          Returns any

    Returns void

  • Log longer text using warn level.

    Parameters

    • message: string

      Message to log

    • text: string | (() => string)

      Text to log

    Returns void

Generated using TypeDoc