pub trait Logger {
// Provided method
fn log(&mut self, _kind: LogKind, _message: &str) { ... }
}
Expand description
Common logging interface that custom log engines should follow to enable their reusability across different modules that will log messages to text output targets. Objects that implement this trait should be considered text output targets, for example text streams, terminal, network-based loggers, even application screen.