Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / index / Transport

Interface: Transport

Defined in: src/lib/logging/types.ts:56

The minimum interface a transport must implement.

log is called synchronously for every record that passes level filtering. Built-in transports must not throw; the logger wraps all transport calls in try/catch and routes failures through onTransportError.

Extended by

Methods

log()

log(record): void

Defined in: src/lib/logging/types.ts:58

Deliver record to the transport's destination.

Parameters

record

LogRecord

Returns

void