| Crates.io | slog-notify |
| lib.rs | slog-notify |
| version | 0.2.0 |
| created_at | 2017-02-16 19:53:08.779335+00 |
| updated_at | 2017-04-30 12:16:58.694542+00 |
| description | Slog drain for desktop notifications |
| homepage | |
| repository | https://github.com/bjorn3/slog-notify |
| max_upload_size | |
| id | 8549 |
| size | 15,699 |
Slog desktop notification bridge
#[macro_use]
extern crate slog;
extern crate slog_notify;
use slog::DrainExt;
fn main(){
let drain = slog_notify::simple("Example simple");
let root_log = slog::Logger::root(drain, o!());
info!(root_log, "Information");
crit!(root_log, "Critical message");
}
Licensed under either of