Function tracing_subscriber::fmt::init [−][src]
pub fn init()
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
Event
s.
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
.