LogSink

Trait LogSink 

Source
pub trait LogSink: Send + Sync {
    // Required method
    fn push_line(&mut self, line: String, is_stderr: bool);
}
Expand description

A trait-object-friendly sink for log lines captured from a Unix process.

This is intentionally minimal so consumers can implement it on their own log buffer type without depending on airlock.

Required Methods§

Source

fn push_line(&mut self, line: String, is_stderr: bool)

Pushes a captured log line. is_stderr is true for lines that came from the process’s stderr stream, false for stdout.

Implementors§