pub trait Formatter: Send + Sync {
    fn format(
        &self,
        record: &Record<'_>,
        dest: &mut StringBuf
    ) -> Result<FmtExtraInfo>; }
Expand description

A trait for log records formatters.

Examples

See the implementation of FullFormatter and ./examples directory.

Required methods

Format a log record.

Implementors