#log #macro #kv #key #value

kv-log-macro

Log macro for log’s kv-unstable backend

7 stable releases

✓ Uses Rust 2018 edition

1.0.6 May 23, 2020
1.0.5 May 8, 2020
1.0.4 Sep 1, 2019

#34 in Text processing

Download history 13654/week @ 2020-02-09 14903/week @ 2020-02-16 17631/week @ 2020-02-23 16291/week @ 2020-03-01 13879/week @ 2020-03-08 14198/week @ 2020-03-15 15591/week @ 2020-03-22 17920/week @ 2020-03-29 17057/week @ 2020-04-05 20352/week @ 2020-04-12 23032/week @ 2020-04-19 23081/week @ 2020-04-26 22855/week @ 2020-05-03 28153/week @ 2020-05-10 25667/week @ 2020-05-17 27869/week @ 2020-05-24

84,630 downloads per month
Used in 388 crates (3 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

~78KB