pub trait Formatter: Send + Sync {
    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.

Required Methods

Formats a log record.

Clones self into a boxed trait object.

Implementors