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.