Rust build crates.io badge docs.rs badge

Slog Kickstarter :rocket:

Builder to setup slog easily.

Slog is really great, but to leverage it's features and flexibility, it requires more setup than importing a module and calling a function (to be precise, it requires about 163 lines of code ;)).

Structured logging is great. You should not postpone introducing logging, but integrate it from the beginning, because retrofitting slog could require lots of changes. That's where Slog Kickstarter comes into play.

Features

Usage

See basic.rs for a running example, and full.rs for all features.

```rust use slog::{o, sloginfo}; use slogkickstarter::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"));

} ```