Crate kaf

Source
Expand description

§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,
);

Structs§

Logger
The logger.

Functions§

from_str
Initializes logging from a &str. Helpful with external configuration.
init
Initializes logging with a global max level of LevelFilter::Info.
with_filter
Initializes logging with a Filter implementation.
with_level
Initializes logging with a global max level.