[][src]Trait flexi_logger::writers::LogWriter

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

Writes to a single log output stream.

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

Required methods

fn write(&self, record: &Record) -> Result<()>

write out a log line

fn flush(&self) -> Result<()>

Flushes any buffered records.

Loading content...

Implementors

impl LogWriter for FileLogWriter[src]

impl LogWriter for SyslogWriter[src]

Loading content...