pub trait Logger: Send + Sync {
// Required methods
fn enabled(&self, level: LogLevel) -> bool;
fn log(&self, record: &Record);
}Expand description
Core trait that defines the logging behavior.
Implementors of this trait handle the actual processing and writing of log records. Custom loggers can be created by implementing this trait.