Skip to main content

LogSink

Trait LogSink 

Source
pub trait LogSink:
    Send
    + Sync
    + Debug
    + 'static {
    // Required method
    fn try_record(&self, line: &str) -> Result<(), LogRecordError>;
}
Expand description

Receives the diagnostic line that would be written to stderr.

try_record runs on the worker that emitted the event. It must return promptly and must not panic. Err is ignored: a collector failure does not fail the flow. There is no queue inside the runtime.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§