slog 2.8.2

Structured, extensible, composable logging for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![cfg(feature = "std")]
use slog::Logger;
use std::io::{Error, ErrorKind};

#[test]
fn ok() {
    repro(slog::Logger::root(slog::Discard, slog::o!()))
}

fn repro(log: Logger) {
    let err = Error::new(ErrorKind::Other, "some error");
    slog::info!(log, "oops"; "err" => #err);
}