Skip to content

@adrianhall/cloudflare-toolkit


@adrianhall/cloudflare-toolkit / index / TransportErrorHandler

Type Alias: TransportErrorHandler

TransportErrorHandler = (error, record) => void

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

Optional callback invoked when a transport's log method throws.

Receives the thrown value and the record that triggered the failure. Any exception thrown by this callback is silently swallowed by the logger.

Parameters

error

unknown

record

LogRecord

Returns

void