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

#1565 in Parser implementations

Download history 5089/week @ 2024-11-15 3937/week @ 2024-11-22 2933/week @ 2024-11-29 3084/week @ 2024-12-06 4875/week @ 2024-12-13 2544/week @ 2024-12-20 1478/week @ 2024-12-27 4670/week @ 2025-01-03 5957/week @ 2025-01-10 4654/week @ 2025-01-17 4722/week @ 2025-01-24 4911/week @ 2025-01-31 4814/week @ 2025-02-07 5592/week @ 2025-02-14 8677/week @ 2025-02-21 6525/week @ 2025-02-28

26,632 downloads per month
Used in 11 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.4–2.2MB
~40K SLoC