Trait LogWriter

Source
pub trait LogWriter: Send + Sync {
    // Required method
    fn log<'a>(&self, record: LogRecord<'a>);
}
Available on non-crate feature uniffi only.
Expand description

Defines the behavior required for writing log records.

Implementors of this trait are responsible for handling log messages, which may involve formatting, filtering, and forwarding them to specific outputs.

Required Methods§

Source

fn log<'a>(&self, record: LogRecord<'a>)

Log the record.

Implementors§