ServerLogSinkPort

Trait ServerLogSinkPort 

Source
pub trait ServerLogSinkPort: Send + Sync {
    // Required method
    fn append(&self, port: u16, stream_type: &str, line: String);
}
Expand description

Port for appending server log lines to a sink.

Implementations should be thread-safe and non-blocking where possible.

Required Methods§

Source

fn append(&self, port: u16, stream_type: &str, line: String)

Append a log line from a server process.

§Arguments
  • port - Port the server is listening on (used for grouping logs)
  • stream_type - Either “stdout” or “stderr”
  • line - The log line content (without trailing newline)

Implementors§