20 releases (8 stable)

2.4.0 Feb 22, 2022
2.3.0 Jan 11, 2021
2.2.0 Jan 19, 2020
2.1.0 Jun 22, 2017
0.6.0 Jul 19, 2016

#242 in Debugging

Download history 1290/week @ 2022-01-27 1195/week @ 2022-02-03 1345/week @ 2022-02-10 1592/week @ 2022-02-17 2143/week @ 2022-02-24 2221/week @ 2022-03-03 1937/week @ 2022-03-10 2209/week @ 2022-03-17 2238/week @ 2022-03-24 2550/week @ 2022-03-31 2423/week @ 2022-04-07 2765/week @ 2022-04-14 2413/week @ 2022-04-21 2562/week @ 2022-04-28 2797/week @ 2022-05-05 2483/week @ 2022-05-12

10,654 downloads per month
Used in 6 crates (3 directly)

MPL-2.0 license

11KB
176 lines

slog-rs logo
Travis CI Build Status slog-bunyan on crates.io slog-rs Gitter Chat

slog-bunyan - Bunyan formatter for slog-rs

Based on slog-json, it will output json with bunyan defined fields.


lib.rs:

Bunyan formatting for slog-rs

#[macro_use]
extern crate slog;
extern crate slog_bunyan;

use slog::Drain;
use std::sync::Mutex;

fn main() {
    let root = slog::Logger::root(
                Mutex::new(
                    slog_bunyan::default(
                        std::io::stderr()
                    )
                ).fuse(),
                o!("build-id" => "8dfljdf")
    );
}

Dependencies

~1.5MB
~26K SLoC