Trait BuildWithCustomFormat

Source
pub trait BuildWithCustomFormat {
    type Decorator: Decorator;

    // Required method
    fn build_with_custom_format<F, D>(&self, f: F) -> Result<Logger>
       where F: FnOnce(Self::Decorator) -> Result<D>,
             D: Drain + Send + 'static,
             D::Err: Debug;
}
Expand description

This trait allows to build a logger instance with a custom format (i.e., Drain}.

Required Associated Types§

Source

type Decorator: Decorator

Decorator type generated by the logger builder.

Required Methods§

Source

fn build_with_custom_format<F, D>(&self, f: F) -> Result<Logger>
where F: FnOnce(Self::Decorator) -> Result<D>, D: Drain + Send + 'static, D::Err: Debug,

Builds a logger with a custom format.

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.

Implementors§