A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/fn.init.html below:

init in tracing_subscriber::fmt - Rust

pub fn init()

Available on crate features fmt and std only.

Expand description

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

The configuration of the subscriber initialized by this function depends on what feature flags are enabled.

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

If the env-filter feature is enabled, this is shorthand for

tracing_subscriber::fmt()
    .with_env_filter(EnvFilter::from_default_env())
    .init();
ยงPanics

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4