Skip to main content

LogWriterCapability

Trait LogWriterCapability 

Source
pub trait LogWriterCapability {
    // Required method
    fn write_log_output(&self, bytes: &[u8]) -> Result<()>;
}
Expand description

Capability for writing encoded log-exporter output to the platform log sink.

Required Methods§

Source

fn write_log_output(&self, bytes: &[u8]) -> Result<()>

Write a buffer of newline-delimited log output.

bytes may contain one or more \n-terminated JSON lines. Implementations should write the whole buffer (so individual lines are not interleaved with other writers) and flush before returning.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§