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 |
#833 in Encoding
30,933 downloads per month
Used in 14 crates
(3 directly)
12KB
176 lines
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")
);
}
slog-bunyan - Bunyan formatter for slog-rs
Based on slog-json, it will output json with bunyan defined fields.
Dependencies
~1.5–2.4MB
~45K SLoC