Skip to main content

Class: ConsoleTransport

A log transport that outputs log entries to the console.

Extends​

Constructors​

Constructor​

new ConsoleTransport(config): ConsoleTransport

The configuration options for the log transport.

Parameters​

config​

LogTransportOptions

Returns​

ConsoleTransport

Inherited from​

LogTransport.constructor

Properties​

config​

protected readonly config: LogTransportOptions

Inherited from​

LogTransport.config

Methods​

write()​

write(entry): Promise<void>

Writes a log entry using the configured formatter and minimum level.

Parameters​

entry​

LogEntry

Returns​

Promise<void>

Overrides​

LogTransport.write