feat(nunciod): layered tracing subscriber with EnvFilter, rotating file, and JSON #368

Merged
KofTwentyTwo merged 1 commits from story/obs-1-subscriber-foundation into dev 2026-07-31 23:12:16 +00:00
1 Commits
Author SHA1 Message Date
James Maes 3e982e0e25 feat(nunciod): layered tracing subscriber with EnvFilter, rotating file, and JSON
Replace the stderr-only tracing_subscriber::fmt::init() bootstrap with a
layered Registry subscriber: a reloadable EnvFilter (NUNCIO_LOG > RUST_LOG >
info) exposed via a reload::Handle for future runtime level control, a
human-readable stderr console layer, and a non-blocking rotating daily file
sink under <data_dir>/logs/. NUNCIO_LOG_FORMAT=json switches the file sink to
JSON. Malformed filters and unwritable log dirs degrade gracefully instead of
crashing the daemon; the WorkerGuard is returned and bound in main for the
process lifetime.

Refs #357
2026-07-31 18:09:29 -05:00