Struct slog_stream::Streamer [] [src]

pub struct Streamer<W: Write, F: Format> { /* fields omitted */ }

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

Uses mutex to serialize writes to io. Use AsyncStreamer for better performance, but without guarantee of immediate output.


impl<W: Write, F: Format> Streamer<W, F>

Create new Streamer writing to io using format

Trait Implementations

impl<W: 'static + Write + Send, F: Format + Send> Drain for Streamer<W, F>

Type of potential errors returned during logging

Log one logging record Read more