Skip to main content

init

Function init 

Source
pub fn init(default_level: &str)
Expand description

Initialize the global tracing subscriber.

Safe to call multiple times — only the first call takes effect (subsequent calls are no-ops), which keeps tests and examples from panicking on a double install. The filter is taken from RUST_LOG if set, otherwise from default_level.