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.

Object Safety§

This trait is not object safe.

Implementors§