Skip to main content

LogSink

Trait LogSink 

Source
pub trait LogSink {
    // Required method
    fn log(&self, level: LogLevel, message: &str, context: &[(String, String)]);
}
Expand description

Where the client’s log messages go (LogSink).

Required Methods§

Source

fn log(&self, level: LogLevel, message: &str, context: &[(String, String)])

context says which client logged the message, such as clientID.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§