不仅仅是一个漂亮的 (交互) 界面: pretty-printer + ndjson 日志记录器,用于 log crate。
Not just a pretty (inter)face.
A pretty-printer and ndjson logger for the log crate.
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.
$ cargo add femmeMIT OR Apache-2.0
暂无开放 Issues,或尚未同步最近议题。