pub trait Logger {
    // Required method
    fn emit(&self, record: LogRecord);
}
Expand description

The interface for emitting LogRecords.

Required Methods§

source

fn emit(&self, record: LogRecord)

Emit a LogRecord. If there is active current thread’s Context, the logger will set the record’s TraceContext to the active trace context,

Implementors§