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§