kaf

Crates.iokaf
lib.rskaf
version1.0.2
sourcesrc
created_at2021-07-25 20:03:10.689181
updated_at2021-07-26 18:07:35.659823
descriptionCursed and pretty logging with Fn filters
homepagehttps://github.com/kotx/kaf
repositoryhttps://github.com/kotx/kaf.git
max_upload_size
id427167
size10,873
Kot C (kotx)

documentation

README

Kaf

Crates.io docs.rs Crates.io

Cursed and pretty logging with Fn filters

kaf::with_filter(
    Box::new(|target, _level| {
        (target == "mycrate" || target.starts_with("mycrate::"))
    }),
    log::LevelFilter::Info,
);

FAQ

This is unoptimized and slow!

Please PR a fix or open an issue, I don't know anything about optimization.

What the heck is X?

I don't know either, but please open an issue.

Commit count: 6

cargo fmt