3 stable releases
1.0.2 | Jul 26, 2021 |
---|---|
1.0.0 | Jul 25, 2021 |
#172 in #logger
6KB
50 lines
Kaf
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.
lib.rs
:
Kaf
kaf
is a log
implementation that enables the user to filter logs based on entry metadata.
For example:
kaf::with_filter(
Box::new(|target, _level| {
(target == "mycrate" || target.starts_with("mycrate::"))
}),
log::LevelFilter::Info,
);
Dependencies
~120–325KB