slog 1.0.0-alpha

Structured, composable logging for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[macro_use]
extern crate slog;
extern crate slog_syslog;

use slog::drain::IntoLogger;
use slog_syslog::Facility;

fn main() {
    let root = slog_syslog::unix_3164(Facility::LOG_USER).into_logger(o!("build-id" => "8dfljdf"));

    error!(root, "Test slog unix syslog message", "x" => -1);
}