Skip to main content

LogConfig

Trait LogConfig 

Source
pub trait LogConfig {
    // Required method
    fn process(&self, record: &LogRecord<'_>) -> (Lv, bool);
}
Available on crate feature print only.
Expand description

Hook to configure the level and format before logging

Required Methods§

Source

fn process(&self, record: &LogRecord<'_>) -> (Lv, bool)

Process a log record, return the level to log and if the module path should be shown

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§