Skip to main content

LogOutput

Trait LogOutput 

Source
pub trait LogOutput: Send {
    // Required methods
    fn write(&mut self, line: &str) -> Result<()>;
    fn flush(&mut self) -> Result<()>;
}
Expand description

Log output trait.

Required Methods§

Source

fn write(&mut self, line: &str) -> Result<()>

Write a formatted log line.

Source

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

Flush output.

Implementors§