Struct slog_term::StreamerBuilder
[−]
[src]
pub struct StreamerBuilder { /* 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 use_utc_timestamp(self) -> Self
Use the UTC time zone for the timestamp
fn use_local_timestamp(self) -> Self
Use the local time zone for the timestamp (default)
fn use_custom_timestamp<F>(self, f: F) -> Self where F: Fn(&mut Write) -> Result<()> + 'static + Send + Sync
Provide a custom function to generate the timestamp
fn build(self) -> Box<Drain<Error=Error> + Send + Sync>
Build the streamer