Trait LogLineWriter

Source
pub trait LogLineWriter {
    // Required method
    fn write(
        &self,
        now: &mut DeferredNow,
        record: &Record<'_>,
    ) -> Result<(), Error>;
}
Expand description

Write out a single log line

Required Methods§

Source

fn write(&self, now: &mut DeferredNow, record: &Record<'_>) -> Result<(), Error>

Write out a log line to the configured output channel.

§Errors

If writing to the configured output channel fails.

Implementors§