fem
femme
cargo install femme
fem

femme

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

by Irina Shestak

2.2.1 (see all)License:MIT OR Apache-2.0
cargo install femme
Readme

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");

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

GitHub Stars

156

LAST COMMIT

2mos ago

MAINTAINERS

1

CONTRIBUTORS

9

OPEN ISSUES

5

OPEN PRs

5
VersionTagPublished
2.2.1
2mos ago
2.2.0
3mos ago
2.1.2
2yrs ago
2.1.1
2yrs ago
No alternatives found
No tutorials found
Add a tutorial