Type Definition tracing_subscriber::fmt::LayerBuilder

source ·
pub type LayerBuilder<S, N = DefaultFields, E = Format<Full>, W = fn() -> Stdout> = Layer<S, N, E, W>;
👎Deprecated since 0.2.4: a separate layer builder type is not necessary, Layers now support configuration
Expand description

A builder for Layer that logs formatted representations of tracing events and spans.

Note: As of tracing-subscriber 0.2.4, the separate builder type is now deprecated, as the Layer type itself supports all the builder’s configuration methods. This is now an alias for Layer.

Implementations§

source§

impl<S, N, E, W> LayerBuilder<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,

source

pub fn finish(self) -> Layer<S, N, E, W>

👎Deprecated since 0.2.4: LayerBuilder is no longer a separate type; this method is not necessary

Builds a Layer with the provided configuration.