Interface SimpleLogger

Logs messages on a specific level.

See

getLoggerFor on how to instantiate loggers.

Hierarchy

Properties

Properties

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

Type declaration

    • (level, message, meta?): SimpleLogger
    • 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 SimpleLogger