pub fn with_default<T, S>(subscriber: S, f: impl FnOnce() -> T) -> TExpand description
Sets this Subscriber as the default for the current thread for the
duration of a closure.
The default subscriber is used when creating a new Span or
Event.
pub fn with_default<T, S>(subscriber: S, f: impl FnOnce() -> T) -> TSets this Subscriber as the default for the current thread for the
duration of a closure.
The default subscriber is used when creating a new Span or
Event.