Function tracing_subscriber::fmt::init[][src]

pub fn init()
This is supported on crate feature fmt only.
Expand description

Install a global tracing subscriber that listens for events and filters based on the value of the RUST_LOG environment variable.

If the tracing-log feature is enabled, this will also install the LogTracer to convert Log records into tracing Events.

This is shorthand for

tracing_subscriber::fmt().init()

Panics

Panics if the initialization was unsuccessful, likely because a global subscriber was already installed by another call to try_init.