pub trait LogWriter { // Required methods fn write(&mut self, line: &str); fn flush(&mut self); fn enabled(&self, line: &LogLine) -> bool; }
Writes a log line.
Flushes buffered logs.
Checks if a line needs to be written to the writer or not.