syslog-too 0.1.1

A small library to send log messages to syslog locally and over TCP or UDP using Rust. A continuation of the syslog crate.
Documentation
//! using syslog with the log crate
extern crate syslog_too;
#[macro_use]
extern crate log;

use log::LevelFilter;
use syslog_too::{Facility, Formatter5424, Logger5424};

fn main() {
    let formatter = Formatter5424 {
        facility: Facility::LOG_USER,
        hostname: None,
        process: "myprogram".into(),
        pid: 0,
    };

    let logger = syslog_too::unix(formatter).expect("failed to connect to syslog");
    log::set_boxed_logger(Box::new(Logger5424::new(logger)))
        .map(|()| log::set_max_level(log::LevelFilter::Info))
        .expect("failed to register logger");

    info!("hello world");
}