pub fn install_global_subscriber(
recording_override: Option<&str>,
default_filter: &str,
verbose: bool,
)Expand description
Install the global tracing subscriber. Two independent axes:
-
Recording floor — what reaches the
LogCaptureLayer(and thus the JSONL writer, broadcast hook, and Observer bridge). Resolved as:recording_override(the--log-levelflag) ifSome, elseRUST_LOGfrom the environment, elsedefault_filter. -
Terminal display — the stderr fmt layer. Gated entirely by
verbose: whenfalsethe fmt layer is muted (no log lines ever reach the terminal; directprintln!/stdout is untouched). Whentrueit surfaces events down to the same recording floor.
All filter strings are RUST_LOG-compatible directives (e.g.
"info" or "debug,matrix_sdk=warn").
Both axes are fixed for the process lifetime — the global subscriber is installed once and cannot be reconfigured without a restart.
Panics on subscriber install failure — the daemon cannot operate without logging.