Skip to content
Interfacetypesv0.16.2

ILogSink

A destination for log records.

interface ILogSink

Properties

Methods

kind

A 'console' sink stops getting records while a capture sink that mutes the console is installed, like the dev terminal's. 'file' and 'capture' sinks keep getting them.

readonly kind: LogSinkKind

dispose()

Runs when a later logger config leaves this sink out. Close a file handle or a connection here.

dispose?(): void

onLog()

Can be async. seedcord doesn't await it, and an edge bot keeps the request open until it finishes.

onLog(record: LogRecord): unknown