pub trait Formatter: Send + Sync {
// Required method
fn format(&self, record: &Record) -> String;
}Expand description
Defines a log message formatter.
Formatters are responsible for converting a log record into a formatted string that can be written to output targets.