Trait slog::drain::RecordDrain [] [src]

pub trait RecordDrain {
    fn add(&mut self, key: &str, val: &Display);
    fn end(&mut self);
}

Record Drain

Handles a single record sent to the drain

Required Methods

fn add(&mut self, key: &str, val: &Display)

Add a key:value to the record

fn end(&mut self)

Finish handling the record.

Implementors