🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_log::env_logger

Trait BuilderExt

Source
pub trait BuilderExt: Sealed {
    // Required method
    fn emit_traces(&mut self) -> &mut Self;
}
Available on crate feature env_logger only.
Expand description

Extension trait to configure an env_logger::Builder to emit traces.

Required Methods§

Source

fn emit_traces(&mut self) -> &mut Self

Configure the built env_logger::Logger to emit tracing events for all consumed log records, rather than printing them to standard out.

Note that this replaces any previously configured formatting.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BuilderExt for Builder

Source§

fn emit_traces(&mut self) -> &mut Self

Implementors§