Trait sloggers::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§
Required Methods§
Object Safety§
This trait is not object safe.