[][src]Crate kv_log_macro

Log macro for log's kv-unstable backend.

Example

use kv_log_macro::info;

femme::start(log::LevelFilter::Info).unwrap();

info!("hello");
info!("hello",);
info!("hello {}", "cats");
info!("hello {}", "cats",);
info!("hello {}", "cats", {
    cat_1: "chashu",
    cat_2: "nori",
});

Macros

debug

Logs a message at the debug level.

error

Logs a message at the error level.

info

Logs a message at the info level.

log

The standard logging macro.

log_enabled

Determines if a message logged at the specified level in that module will be logged.

trace

Logs a message at the trace level.

warn

Logs a message at the warn level.

Enums

Level

An enum representing the available verbosity levels of the logger.

Constants

STATIC_MAX_LEVEL

The statically resolved maximum log level.

Functions

max_level

Returns the current maximum log level.