Interface Logger

Logs messages, with convenience methods to log on a specific level.

See

getLoggerFor on how to instantiate loggers.

Hierarchy

Implemented by

Properties

debug: ((message) => Logger)

Type declaration

    • (message): Logger
    • Log a message at the 'debug' level.

      Parameters

      • message: string

        The message to log.

      Returns Logger

error: ((message) => Logger)

Type declaration

    • (message): Logger
    • Log a message at the 'error' level.

      Parameters

      • message: string

        The message to log.

      Returns Logger

info: ((message) => Logger)

Type declaration

    • (message): Logger
    • Log a message at the 'info' level.

      Parameters

      • message: string

        The message to log.

      Returns Logger

log: ((level, message, meta?) => Logger)

Type declaration

    • (level, message, meta?): Logger
    • Log the given message at the given level. If the internal level is higher than the given level, the message may be voided.

      Parameters

      • level: "error" | "warn" | "info" | "verbose" | "debug" | "silly"

        The level to log at.

      • message: string

        The message to log.

      • Optional meta: LogMetadata

        Optional metadata to include in the log message.

      Returns Logger

silly: ((message) => Logger)

Type declaration

    • (message): Logger
    • Log a message at the 'silly' level.

      Parameters

      • message: string

        The message to log.

      Returns Logger

verbose: ((message) => Logger)

Type declaration

    • (message): Logger
    • Log a message at the 'verbose' level.

      Parameters

      • message: string

        The message to log.

      Returns Logger

warn: ((message) => Logger)

Type declaration

    • (message): Logger
    • Log a message at the 'warn' level.

      Parameters

      • message: string

        The message to log.

      Returns Logger