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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".