🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_log::env_logger

Function init

Source
pub fn init()
Available on crate feature env_logger only.
Expand description

Initializes the global logger with an env logger configured to emit tracing events.

This should be called early in the execution of a Rust program. Any log events that occur before initialization will be ignored.

ยงPanics

This function will panic if it is called more than once, or if another library has already initialized a global logger.