Struct slog_term::StreamerBuilder
[−]
[src]
pub struct StreamerBuilder { // some fields omitted }
Streamer builder
Methods
impl StreamerBuilder
[src]
fn new() -> Self
New StreamerBuilder
fn color(self) -> Self
Force colored output
fn plain(self) -> Self
Force plain output
fn auto_color(self) -> Self
Auto detect color (default)
fn stderr(self) -> Self
Output to stderr
fn stdout(self) -> Self
Output to stdout (default)
fn full(self) -> Self
Output using full mode
fn compact(self) -> Self
Output using compact mode (default)
fn async(self) -> Self
Use asynchronous streamer
fn sync(self) -> Self
Use synchronous streamer (default)
fn build(self) -> Box<Drain<Error=Error>>
Build the streamer