slog-term 2.9.2

Unix terminal drain and formatter for slog-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate slog;
extern crate slog_async;
extern crate slog_term;

use slog::Drain;

use slog_async::Async;

fn main() {
    let decorator = slog_term::PlainSyncDecorator::new(std::io::stdout());
    let _drain = slog_term::FullFormat::new(decorator).build().fuse();

    let decorator = slog_term::PlainDecorator::new(std::io::stdout());
    let _drain =
        Async::new(slog_term::FullFormat::new(decorator).build().fuse())
            .build()
            .fuse();
}