Skip to main content

LogSink

Trait LogSink 

Source
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§

Source

fn receive(&self, msg: &LogMessage)

Processes a single incoming log message.

§Arguments

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§