Trait opentelemetry::logs::Logger
source · 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 LogRecord
s.
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.