Skip to main content

install_global_subscriber

Function install_global_subscriber 

Source
pub fn install_global_subscriber(default_filter: &str)
Expand description

Install the global tracing subscriber: stderr fmt with the agent-alias-prefixed formatter on top + the LogCaptureLayer that routes structured events to the JSONL writer, broadcast hook, and Observer bridge.

default_filter is the RUST_LOG-compatible filter string used when the environment variable is unset (e.g. "info" or "info,matrix_sdk=warn").

Panics on subscriber install failure — the daemon cannot operate without logging.