Skip to main content

init_tracing

Function init_tracing 

Source
pub fn init_tracing(log_level: &str, log_format: &str)
Expand description

Initializes the global tracing subscriber, panic hook, and log bridge.

Must be called exactly once, before any tracing events are emitted. After this call, panics on any thread produce tracing::error! events, and log crate events from dependencies (refinery, ureq, ort) are forwarded to the tracing subscriber.

Stderr is always the agent-facing diagnostic stream. File logging is optional via XDG log.to_file (GAP-SG-108).