Crate minifemme[][src]

Expand description

Rust log-compatible pretty/ndjson logger, based on femme


minifemme::start(minifemme::LevelFilter::Info, minifemme::LogMode::Pretty);
log::warn!("Unauthorized access attempt on /login");
log::info!("Listening on port 8080");


An enum representing the available verbosity level filters of the logger.

Selects between ndjson-based logging or pretty-printed logging.


Starts logging with a log level and log mode. All messages under the specified log level will statically be filtered out. The logger will use the mode specified. This can’t be changed later. (Except if the program is running in a WASM environment.)