#slog #notify #desktop-notifications #bridge #drain

sllog-notify

桌面通知的sllog输出

2个不稳定版本

使用旧的Rust 2015

0.2.0 2017年4月30日
0.1.0 2017年2月16日

#20 in #drain

Apache-2.0

7KB

sllog-notify

sllog桌面通知桥接器

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

许可证

根据您的选择,许可协议为

依赖项

~1–10MB
~95K SLoC