Represents a logger instance with different log levels and functions.

Implements

Constructors

Properties

Methods

Constructors

  • Creates a new instance of the default logger

    Parameters

    • name: string

      Name of the provider

    Returns DebugLogger

Properties

debug: LoggerFunction = ...

Log events in the DEBUG level: all the information in a detailed way. This level used to be necessary only in the debugging process, so not all the data is reported, only the related with the main processes and tasks.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

error: LoggerFunction = ...

Log events in the ERROR level: all the errors and problems with detailed information.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

info: LoggerFunction = ...

Log events in the INFO level: only relevant events are reported. This level is the default level.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

silly: LoggerFunction = ...

Log events in the SILLY level: all the information in a very detailed way. This level used to be necessary only in the development process, and the meta data used to be the results of the operations.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

stream: { write: (message: string) => void } = ...

Stream logger

verbose: LoggerFunction = ...

Log events in the VERBOSE level: trace information without details. This level used to be necessary only in system configuration process, so information about the settings and startup process used to be reported.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

warn: LoggerFunction = ...

Log events in the WARN level: information about possible problems or dangerous situations.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

Methods

  • Log events in the ERROR level: all the information in a very detailed way. This level used to be necessary only in the development process.

    Parameters

    • rawError: Crash | Boom | Multi

      crash error instance

    • Optionalcontext: string

      context (class/function) where this logger is logging

    Returns void