Skip to main content
zerotal

Documentation


Documentation / zerotal / logger / LogChannel

Interface: LogChannel

Defined in: packages/core/src/logger/types.ts:86

Contract every log destination implements: a single async write that persists or displays one LogEntry. Implementations include ConsoleChannel, SingleChannel, DailyChannel, StackChannel, and NullChannel. Implement this to add a custom destination.

Methods

write()

write(entry): Promise<void>

Defined in: packages/core/src/logger/types.ts:87

Parameters

entry

LogEntry

Returns

Promise<void>