Documentation / zerotal / logger / ChannelConfig
Type Alias: ChannelConfig
ChannelConfig = {
driver:"console";level?:LogLevel;format?:"json"|"pretty"; } | {driver:"single";level?:LogLevel;path:string; } | {driver:"daily";level?:LogLevel;path:string;days?:number; } | {driver:"stack";level?:LogLevel;channels:string[]; } | {driver:"null"; }
Defined in: packages/core/src/logger/types.ts:129
Discriminated union describing one channel's configuration, keyed by
driver. Each variant maps to a concrete LogChannel:
console— ConsoleChannel;formatis"pretty"(default) or"json".single— SingleChannel; appends every entry topath.daily— DailyChannel; date-rotated files underpath, pruned afterdays.stack— StackChannel; fans out to the namedchannels.null— NullChannel; discards everything.