Function tracing_subscriber::fmt::layer [−][src]
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: MakeWriter + 'static,
This is supported on crate feature
fmt
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.