1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//!
//! Logging utilizing `slog` (and `slog_term`).
//! 

use lazy_static::lazy_static;
use slog::{Logger, Drain, o};

lazy_static! {
    pub static ref LOG: Logger = {
        let plain = slog_term::PlainSyncDecorator::new(std::io::stdout());
        Logger::root(
            slog_term::FullFormat::new(plain)
            .build().fuse(), o!()
        )
    };
}