minifemme
Rust log-compatible pretty/ndjson logger, based on femme.
A pretty-printer and ndjson logger for the log crate.
Examples
;
warn!;
info!;
start
The main reason behind this crate's existence is that I needed something that works
almost like 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 console.log()
to JavaScript.
Screenshots
Pretty Output
Newline Delimited JSON
Installation
License
MIT OR Apache-2.0