Function tracing_subscriber::fmt::layer
source · [−]pub fn layer<S>() -> Layer<S>ⓘNotable traits for Layer<S, N, E, W>impl<S, N, E, W> Layer<S> for Layer<S, N, E, W> where
S: Subscriber + for<'a> LookupSpan<'a>,
N: for<'writer> FormatFields<'writer> + 'static,
E: FormatEvent<S, N> + 'static,
W: for<'writer> MakeWriter<'writer> + 'static,
Available on crate features
fmt
and std
only.Expand description
Returns a new formatting layer that can be composed with other layers to
construct a Subscriber
.
This is a shorthand for the equivalent Layer::default()
function.