pub trait Logger {
type LogRecord: LogRecord;
// Required methods
fn create_log_record(&self) -> Self::LogRecord;
fn emit(&self, record: Self::LogRecord);
}Expand description
The interface for emitting LogRecords.
Required Associated Types§
Required Methods§
Sourcefn create_log_record(&self) -> Self::LogRecord
fn create_log_record(&self) -> Self::LogRecord
Creates a new log record builder.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".