pub trait Logger: Send + 'static {
// Required method
fn log(&mut self, record: Record);
}
Expand description
Trait for processing log records in LoggedStream
.
This trait allows processing log records (Record
) using the log
method. It should be implemented for
structures intended to be used as the logging component within LoggedStream
. The log
method is called
by LoggedStream
for further log record processing (e.g., writing to the console, memory, or database)
after the log record message has been formatted by an implementation of BufferFormatter
and filtered
by an implementation of RecordFilter
.