Crate minifemme

Source
Expand description

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

§Examples

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

Enums§

LevelFilter
An enum representing the available verbosity level filters of the logger.
LogMode
Selects between ndjson-based logging or pretty-printed logging.

Functions§

start
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.)