slog-kickstarter 0.2.0

builder to easily setup the slog logging ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
use slog::{o, slog_info};
use slog_kickstarter::SlogKickstarter;

fn main() {
    // initialize a root logger
    let root_logger = SlogKickstarter::new("logging-example").init();

    // slog supports string formatting, and additional structured fields
    slog_info!(root_logger, "Hello World!"; o!("type" => "example"));
}