async_rawlogger

Trait FtLogFormat

Source
pub trait FtLogFormat: Send + Sync {
    // Required method
    fn msg(&self, record: &Record<'_>) -> Box<dyn Send + Sync + Display>;
}

Required Methods§

Source

fn msg(&self, record: &Record<'_>) -> Box<dyn Send + Sync + Display>

turn an reference to record into a box object, which can be sent to log thread and then formatted into string.

Implementors§