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

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

pub fn set_default(dispatcher: &Dispatch) -> DefaultGuard
Available on crate feature std only.
Expand description

Sets the dispatch as the default dispatch for the duration of the lifetime of the returned DefaultGuard

Note: This function required the Rust standard library. no_std users should use set_global_default instead.