Documentation / @zerotal/core / logger / LoggingConfigShape
Interface: LoggingConfigShape
Defined in: logger/types.ts:185
Full shape of the logging config namespace, as produced by
LoggingConfig. Defines the two always-on sinks, the channel map,
which channel is the default, and framework logging thresholds.
Properties
console?
optionalconsole?:ConsoleSinkConfig
Defined in: logger/types.ts:189
The terminal sink, on unless false. See ConsoleSinkConfig.
file?
optionalfile?:FileSinkConfig
Defined in: logger/types.ts:193
The durable file trail, on unless false. See FileSinkConfig.
default
default:
string
Defined in: logger/types.ts:195
Name of the channel used by unqualified Log.* calls.
channels
channels:
Record<string,ChannelConfig>
Defined in: logger/types.ts:204
Named channel definitions; see ChannelConfig.
Channels are additional destinations, not replacements — an entry routed
to one still reaches the console and the file trail. A channel that already
covers a sink (a console driver, or single/daily) suppresses that
baseline for its own entries, so nothing is written twice.
slowQueryMs?
optionalslowQueryMs?:number
Defined in: logger/types.ts:206
Threshold, in ms, above which ORM queries are logged as slow (default 1000).
requests?
optionalrequests?:boolean
Defined in: logger/types.ts:211
Log every HTTP request (method, path, status, duration) via LoggerMiddleware.
On by default; set false to silence the per-request access log.