Skip to main content

Abstract Class: LogTransport

An abstract class for defining log transport behavior.

Extended by​

Constructors​

Constructor​

new LogTransport(config): LogTransport

The configuration options for the log transport.

Parameters​

config​

LogTransportOptions

Returns​

LogTransport

Properties​

config​

protected readonly config: LogTransportOptions

Methods​

write()​

abstract write(entry): Promise<void>

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

Parameters​

entry​

LogEntry

Returns​

Promise<void>