Rust log-compatible pretty/ndjson logger, based on femme.
minifemme::start(minifemme::LevelFilter::Trace, minifemme::LogMode::Pretty); log::warn!("Unauthorized access attempt on /login"); log::info!("Listening on port 8080");
The main reason behind this crate's existence is that I needed something that works
femme, but with the ability to arbitrarily select the log mode.
When using Wasm with
#[cfg(target_arch = "wasm32")], the Wasm logger will be used.
The Wasm logger uses
web_sys crate to send
$ cargo add minifemme