nautilus_common::logging::writer

Trait LogWriter

Source
pub trait LogWriter {
    // Required methods
    fn write(&mut self, line: &str);
    fn flush(&mut self);
    fn enabled(&self, line: &LogLine) -> bool;
}

Required Methods§

Source

fn write(&mut self, line: &str)

Writes a log line.

Source

fn flush(&mut self)

Flushes buffered logs.

Source

fn enabled(&self, line: &LogLine) -> bool

Checks if a line needs to be written to the writer or not.

Implementors§