Skip to main content

Class: HttpTransport

A log transport that outputs log entries via HTTP POST requests.

Extends​

Constructors​

Constructor​

new HttpTransport(options): HttpTransport

Parameters​

options​

HttpTransportOptions

Returns​

HttpTransport

Overrides​

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