pub trait Formatter: Send + Sync {
// Required methods
fn format(
&self,
record: &Record<'_>,
dest: &mut StringBuf
) -> Result<FmtExtraInfo>;
fn clone_box(&self) -> Box<dyn Formatter>;
}
Expand description
A trait for log records formatters.
§Examples
See the implementation of FullFormatter
and ./examples directory.