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§