Trait logged_stream::Logger
source · pub trait Logger: Send + 'static {
// Required method
fn log(&mut self, record: Record);
}Expand description
This trait allows to process log record (Record) using log method. It should be implemented for
structures which are going to be used as logging part inside LoggedStream. Method log is called
by LoggedStream for further log record processing (writing to the console, to the memory or database, etc.)
after log record message was formatted by some implementation of BufferFormatter and the entire log record
was filtered by some implementation of RecordFilter.