lrlna / Femme
Licence: other
Not just a pretty (inter)face: pretty-printer + ndjson logger for log crate.
Stars: ✭ 143
Programming Languages
rust
11053 projects
femme
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
Newline Delimited JSON
Installation
$ cargo add femme
License
MIT OR Apache-2.0
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].