#log #macro #kv #key #value

kv-log-macro

Log macro for log’s kv-unstable backend

8 stable releases

1.0.7 Jul 6, 2020
1.0.6 May 23, 2020
1.0.5 May 8, 2020
1.0.4 Sep 1, 2019

#34 in Text processing

Download history 46097/week @ 2021-01-16 50033/week @ 2021-01-23 50574/week @ 2021-01-30 50066/week @ 2021-02-06 51352/week @ 2021-02-13 53129/week @ 2021-02-20 54790/week @ 2021-02-27 53274/week @ 2021-03-06 52161/week @ 2021-03-13 51141/week @ 2021-03-20 50740/week @ 2021-03-27 49986/week @ 2021-04-03 49653/week @ 2021-04-10 49373/week @ 2021-04-17 50849/week @ 2021-04-24 50857/week @ 2021-05-01

201,637 downloads per month
Used in 1,051 crates (13 directly)

MIT/Apache

17KB
166 lines

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

Dependencies

~0.5–1MB
~24K SLoC