pub fn layer<S>() -> Layer<S>where
S: Collect + for<'lookup> LookupSpan<'lookup>,
Expand description
Returns a new json formatting layer that can be composed with other layers to construct a
Subscriber
.
This layer is primarily for compatibility with tracing_subscriber
, if you need more control
over the output, JsonLayer
can be used instead.