unix_3164

Function unix_3164 

Source
pub fn unix_3164(facility: Facility) -> Result<Streamer3164>
Expand description

Streamer to Unix syslog using RFC 3164 format

Examples found in repository?
examples/syslog-unix.rs (line 9)
8fn main() {
9    let syslog = slog_syslog::unix_3164(Facility::LOG_USER).unwrap();
10    let root = slog::Logger::root(syslog.fuse(), o!());
11
12    info!(root, "Starting");
13
14    let log = root.new(o!("who" => "slog-syslog test", "build-id" => "8dfljdf"));
15
16    info!(log, "Message"; "x" => -1, "y" => 2);
17    error!(log, "Error");
18}