#desktop-notifications #slog #notify #bridge

slog-notify

Slog drain for desktop notifications

2 unstable releases

Uses old Rust 2015

0.2.0 Apr 30, 2017
0.1.0 Feb 16, 2017

#34 in #desktop-notifications

Download history 4/week @ 2024-09-22 22/week @ 2024-09-29 53/week @ 2024-12-08

53 downloads per month

Apache-2.0

7KB

slog-notify

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");
}

License

Licensed under either of

Dependencies

~1.2–9MB
~89K SLoC