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

#2 in #hierarchical

Download history 2057/week @ 2022-10-07 1781/week @ 2022-10-14 2211/week @ 2022-10-21 2612/week @ 2022-10-28 2237/week @ 2022-11-04 2160/week @ 2022-11-11 1596/week @ 2022-11-18 1896/week @ 2022-11-25 2278/week @ 2022-12-02 2165/week @ 2022-12-09 3099/week @ 2022-12-16 1565/week @ 2022-12-23 1757/week @ 2022-12-30 2900/week @ 2023-01-06 2433/week @ 2023-01-13 3435/week @ 2023-01-20

11,037 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
~28K SLoC