LogOutput

Trait LogOutput 

Source
pub trait LogOutput: Send + Sync {
    // Required methods
    fn write(&self, entry: &LogEntry) -> Result<()>;
    fn flush(&self) -> Result<()>;
}
Expand description

Trait for log output destinations.

Required Methods§

Source

fn write(&self, entry: &LogEntry) -> Result<()>

Write a log entry to the output.

Source

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

Flush any buffered output.

Implementors§