A WinstonLogger implements the Logger interface using a given winston logger.

Hierarchy (view full)

Constructors

Methods

  • 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.

    • Optionalmeta: unknown

      Optional metadata to include in the log message.

    Returns this