21 releases (9 stable)

2.5.0 Jan 5, 2024
2.4.0 Feb 22, 2022
2.3.0 Jan 11, 2021
2.2.0 Jan 19, 2020
0.6.0 Jul 19, 2016

#915 in Parser implementations

Download history 4396/week @ 2024-07-21 5345/week @ 2024-07-28 6015/week @ 2024-08-04 8592/week @ 2024-08-11 6669/week @ 2024-08-18 7770/week @ 2024-08-25 5176/week @ 2024-09-01 4213/week @ 2024-09-08 4524/week @ 2024-09-15 7151/week @ 2024-09-22 5304/week @ 2024-09-29 5327/week @ 2024-10-06 6026/week @ 2024-10-13 4447/week @ 2024-10-20 6699/week @ 2024-10-27 5152/week @ 2024-11-03

22,739 downloads per month
Used in 10 crates (3 directly)

MPL-2.0 license

12KB
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.3–2.2MB
~39K SLoC