Crate slog_syslog [−] [src]
Syslog drain for slog-rs
WARNING: This crate needs some improvements.
extern crate slog; extern crate slog_syslog; use slog::*; use slog_syslog::Facility; fn main() { let o = o!("build-id" => "8dfljdf"); let root = if let Ok(drain) = slog_syslog::unix_3164(Facility::LOG_USER) { Logger::root(drain.fuse(), o) } else { Logger::root(Discard, o) }; }
Structs
Format3164 |
Formatter to format defined in RFC 3164 |
Streamer3164 |
Drain formatting records and writing them to a syslog ` |
Enums
Facility |
Functions
unix_3164 |
|