pub trait LogSink: Send + Sync {
// Required method
fn receive(&self, msg: &LogMessage);
}Expand description
Trait for destinations that can process and output log messages.
Sinks must be thread-safe (Send + Sync) to be utilized by the background logger.
Required Methods§
Sourcefn receive(&self, msg: &LogMessage)
fn receive(&self, msg: &LogMessage)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".