Skip to main content

Class: NullTransport

A log transport that discards all log entries.

Extends​

Constructors​

Constructor​

new NullTransport(config): NullTransport

The configuration options for the log transport.

Parameters​

config​

LogTransportOptions

Returns​

NullTransport

Inherited from​

LogTransport.constructor

Properties​

config​

protected readonly config: LogTransportOptions

Inherited from​

LogTransport.config

Methods​

write()​

write(_): Promise<void>

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

Parameters​

_​

LogEntry

Returns​

Promise<void>

Overrides​

LogTransport.write