Skip to main content
zerotal

Documentation


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: