The console logger class

Export

ConsoleLogger

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

stream: Stream

Methods

  • Logs a fatal error to the console. When it occurs, it is good practice to kill the process afterwards.

    Parameters

    • message: string

    Returns void

    Memberof

    Logger

  • Log a message to the console at the provided level. Include the timestamp if includeTimestamp is set.

    Parameters

    • message: string

      the message to log

    • level: LogEventLevel

      the level to log the message at

    • Optional includeTimestamp: boolean

      whether to log the message with the timestamp or not. Defaults to false.

    Returns void

    Memberof

    Logger

  • Log a message to the console based on the provided localOptions

    Parameters

    • message: string

      the message to log

    • localOptions: ILoggerOptions

      the local options which are used by the logger

    Returns void

    Memberof

    Logger

  • Logs everything in the console. Called verbose because it can be quite spammy.

    Parameters

    • message: string

    Returns void

    Memberof

    Logger