Interface LoggerInstance

Represents a logger instance with different log levels and functions.

interface LoggerInstance {
    crash: (error: Crash | Boom | Multi, context?: string) => void;
    debug: LoggerFunction;
    error: LoggerFunction;
    info: LoggerFunction;
    silly: LoggerFunction;
    stream: { write: (message: string) => void };
    verbose: LoggerFunction;
    warn: LoggerFunction;
}

Implemented by

Properties

crash: (error: Crash | Boom | Multi, context?: string) => void

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.

Type declaration

    • (error: Crash | Boom | Multi, context?: string): void
    • 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.

human readable information to log

unique identifier for the actual job/task/request process

context (class/function) where this logger is logging

extra information

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

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

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 }

Logs events in the stream.

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

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