Skip to main content

init_tracing

Function init_tracing 

Source
pub fn init_tracing()
Expand description

Initialise the global tracing subscriber.

Why: All daemons and CLI entry points call this once at startup to ensure log output is consistently routed to stderr with the RUST_LOG filter. What: Installs a stderr-bound fmt subscriber with EnvFilter::from_default_env(). Panics if called twice (use init_tracing_for_test in test binaries). Test: Called in main.rs; correctness is verified by observing log output.