Crate kaf[][src]

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

The logger.

Functions

Initializes logging from a &str. Helpful with external configuration.

Initializes logging with a global max level of LevelFilter::Info.

Initializes logging with a Filter implementation.

Initializes logging with a global max level.