#ndjson #logging

femme

Not just a pretty (inter)face: pretty-printer and ndjson logger for log crate

10 stable releases

2.2.1 May 9, 2022
2.2.0 Apr 5, 2022
2.1.2 Dec 4, 2020
2.1.1 Aug 10, 2020
1.1.0 Jul 20, 2019

#187 in Value formatting

Download history 43452/week @ 2025-10-10 46949/week @ 2025-10-17 39877/week @ 2025-10-24 37033/week @ 2025-10-31 51970/week @ 2025-11-07 41803/week @ 2025-11-14 44811/week @ 2025-11-21 49514/week @ 2025-11-28 49130/week @ 2025-12-05 45016/week @ 2025-12-12 21993/week @ 2025-12-19 16262/week @ 2025-12-26 33686/week @ 2026-01-02 39831/week @ 2026-01-09 43840/week @ 2026-01-16 41194/week @ 2026-01-23

161,334 downloads per month
Used in 54 crates (41 directly)

MIT/Apache

570KB
218 lines

femme

crates.io version build status downloads docs.rs docs

Not just a pretty (inter)face.

A pretty-printer and ndjson logger for the log crate.

Examples

use kv_log_macro as log;

femme::with_level(femme::LevelFilter::Trace);
log::warn!("Unauthorized access attempt on /login");
log::info!("Listening on port 8080");

Prettified output will be displayed when debugging. In release mode, this logger will output to ndjson.

When using Wasm with #[cfg(target_arch = "wasm32")], Wasm logger will be used. Wasm logger uses web_sys crate to send console.log() to JavaScript.

Screenshots

Pretty Output

pretty printed logs

Newline Delimited JSON

ndjson

Installation

$ cargo add femme

License

MIT OR Apache-2.0

Dependencies

~0.9–4MB
~79K SLoC