Interface ILogger

interface ILogger {
    child(name): ILogger;
    debug(loggable): Promise<void>;
    debug(message, ...params): Promise<void>;
    error(loggable): Promise<void>;
    error(message, ...params): Promise<void>;
    fatal(loggable): Promise<void>;
    fatal(message, ...params): Promise<void>;
    getLogLevel(): Promise<number>;
    ifDebug(): Promise<void>;
    ifEnabled(logLevel): Promise<void>;
    ifError(): Promise<void>;
    ifFatal(): Promise<void>;
    ifInfo(): Promise<void>;
    ifTrace(): Promise<void>;
    ifWarn(): Promise<void>;
    info(loggable): Promise<void>;
    info(message, ...params): Promise<void>;
    isDebug(): Promise<boolean>;
    isEnabled(logLevel): Promise<boolean>;
    isError(): Promise<boolean>;
    isFatal(): Promise<boolean>;
    isInfo(): Promise<boolean>;
    isTrace(): Promise<boolean>;
    isWarn(): Promise<boolean>;
    log(logLevel, loggable): Promise<void>;
    log(logLevel, message, ...params): void;
    setLogLevel(logLevel): Promise<void>;
    trace(loggable): Promise<void>;
    trace(message, ...params): Promise<void>;
    warn(loggable): Promise<void>;
    warn(message, ...params): Promise<void>;
}

Implemented by

Methods

  • Log a loggable with the debug level if it is enabled.

    Parameters

    Returns Promise<void>

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

    Parameters

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns Promise<void>

  • Log a loggable with the error level if it is enabled.

    Parameters

    Returns Promise<void>

  • Log a message with the error level.

    Parameters

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns Promise<void>

  • Log a loggable with the fatal level if it is enabled.

    Parameters

    Returns Promise<void>

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

    Parameters

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns Promise<void>

  • Log a loggable with the info level if it is enabled.

    Parameters

    Returns Promise<void>

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

    Parameters

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns Promise<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

  • Log a loggable with the trace level if it is enabled.

    Parameters

    Returns Promise<void>

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

    Parameters

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns Promise<void>

  • Log a loggable with the warn level if it is enabled.

    Parameters

    Returns Promise<void>

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

    Parameters

    • message: any

      The message format string.

    • Rest ...params: any[]

      The format string variables.

    Returns Promise<void>