Class Logger, manage the event and log register process for netin artifacts

Implements

Constructors

  • Create a netin logger instance with default values

    Returns Logger

  • Create a netin logger instance with default values

    Parameters

    • label: string

      logger label

    Returns Logger

  • Create a netin logger instance with default values

    Parameters

    • label: string

      logger label

    • Optionalconfiguration: LoggerConfig

      logger configuration

    Returns Logger

Accessors

  • get configError(): undefined | Multi
  • Logger configuration errors, if exist

    Returns undefined | Multi

  • get hasError(): boolean
  • Logger configuration error flag

    Returns boolean

  • get stream(): { write: (str: string) => void }
  • Stream de escritura del propio logger

    Returns { write: (str: string) => void }

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

    • error: Crash | Boom | Multi

      crash error instance

    • Optionalcontext: string

      context (class/function) where this logger is logging

    Returns void

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

    Parameters

    • message: string

      human readable information to log

    • Optionaluuid: string

      unique identifier for the actual job/task/request process

    • Optionalcontext: string

      context (class/function) where this logger is logging

    • ...meta: any[]

      extra information

    Returns void

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

    Parameters

    • message: string

      human readable information to log

    • Optionaluuid: string

      unique identifier for the actual job/task/request process

    • Optionalcontext: string

      context (class/function) where this logger is logging

    • ...meta: any[]

      extra information

    Returns void

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

    Parameters

    • message: string

      human readable information to log

    • Optionaluuid: string

      unique identifier for the actual job/task/request process

    • Optionalcontext: string

      context (class/function) where this logger is logging

    • ...meta: any[]

      extra information

    Returns void

  • Establish the logger configuration

    Parameters

    • label: string

      Logger label

    • configuration: LoggerConfig

      logger configuration

    Returns void

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

    Parameters

    • message: string

      human readable information to log

    • Optionaluuid: string

      unique identifier for the actual job/task/request process

    • Optionalcontext: string

      context (class/function) where this logger is logging

    • ...meta: any[]

      extra information

    Returns void

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

    Parameters

    • message: string

      human readable information to log

    • Optionaluuid: string

      unique identifier for the actual job/task/request process

    • Optionalcontext: string

      context (class/function) where this logger is logging

    • ...meta: any[]

      extra information

    Returns void

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

    Parameters

    • message: string

      human readable information to log

    • Optionaluuid: string

      unique identifier for the actual job/task/request process

    • Optionalcontext: string

      context (class/function) where this logger is logging

    • ...meta: any[]

      extra information

    Returns void