Interface LoggerBufferRecordInternal

Type of a record stored in the internal buffer.

If the logger was constructed without a log level, all initial messages are stored in a buffer, and processed at a later time, when the log level is set.

Each record in the buffer stores the message, the log level and a function to process the message.

interface LoggerBufferRecord {
    message: string;
    numericLevel: number;
    func: LoggerFunction;
}

Properties

message: string

The string message to be logged.

numericLevel: number

The numeric log level at the time of the call.

The function to be called to log the message.