Struct slog::drain::Streamer [] [src]

pub struct Streamer<W: Write> {
    // some fields omitted
}

Drain formating records and writing them to a byte-stream (io::Write)

Uses mutex to serialize writes. TODO: Add one that does not serialize?

Methods

impl<W: Write> Streamer<W>
[src]

fn new(io: W) -> Self

Trait Implementations

impl<W: 'static + Write + Send> Drain for Streamer<W>
[src]

fn new_record(&self, info: &RecordInfo) -> Option<Box<RecordDrain>>