Trait slog::drain::Drain [] [src]

pub trait Drain: Send + Sync {
    fn log(&self, info: &RecordInfo, &[OwnedKeyValue], &[BorrowedKeyValue]);
}

Drain for Loggers

Implementing this trait allows writing own Drains

Required Methods

fn log(&self, info: &RecordInfo, &[OwnedKeyValue], &[BorrowedKeyValue])

Write one logging record

Implementors