kv-log-macro

Crates.iokv-log-macro
lib.rskv-log-macro
version1.0.7
sourcesrc
created_at2019-09-01 15:56:50.943347
updated_at2020-07-06 09:42:00.776479
descriptionLog macro for log's kv-unstable backend.
homepage
repositoryhttps://github.com/yoshuawuyts/kv-log-macro
max_upload_size
id161367
size49,356
Yosh (yoshuawuyts)

documentation

https://docs.rs/kv-log-macro

README

kv-log-macro

crates.io version build status downloads docs.rs docs

Log macro for log's kv-unstable backend.

Examples

use kv_log_macro::info;

fn main() {
    femme::start(log::LevelFilter::Info).unwrap();
    info!("hello");
    info!("hello",);
    info!("hello {}", "cats");
    info!("hello {}", "cats",);
    info!("hello {}", "cats", {
        cat_1: "chashu",
        cat_2: "nori",
    });
}

Installation

$ cargo add kv-log-macro

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

None.

License

MIT OR Apache-2.0

Commit count: 24

cargo fmt