Crate slog_term [−] [src]
Unix terminal formatter and drain for slog-rs
#[macro_use] extern crate slog; extern crate slog_term; use slog::*; fn main() { let root = Logger::root(slog_term::streamer().build().fuse(), o!("build-id" => "8dfljdf")); }
Structs
| ColorDecorator |
Record decorator (color) for terminal output |
| ColorRecordDecorator |
Particular record decorator (color) for terminal output |
| Format |
Full formatting with optional color support |
| StreamerBuilder |
Streamer builder |
Enums
| FormatMode |
Formatting mode |
Functions
| streamer |
Build |
| timestamp_local |
Default local timestamp function used by |
| timestamp_utc |
Default UTC timestamp function used by |
Type Definitions
| TimestampFn |
Timestamp function type |