youlog

A thin logging implementation for Rust's log facade.

This crate allows for providing custom functions to the logger.

Examples where this might be useful:

Example

```rs use log::LevelFilter; use youlog::Builder;

Builder::new() .globallevel(LevelFilter::Info) .logfn(LevelFilter::Info, |r| { println!("info {}", r.args().asstr().unwrapor_default()); }) .init() .expect("unable to init logger");

log::info!("this is an info log!"); ```

Status

Module level filters are still WIP, but those can just be implemented in a logging function anyways :)

License

MPL-2.0