Trait flexi_logger::writers::LogWriter
source · 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.