pub trait LogWriter: Sync + Send {
    fn write(&self, record: &Record<'_>) -> Result<()>;
    fn flush(&self) -> Result<()>;
}
Expand description

Writes to a single log output stream.

Boxed instances of LogWriter can be used as additional log targets.

Required Methods§

write out a log line

Flushes any buffered records.

Implementors§