#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

#6 in #kv

Download history 184062/week @ 2023-10-17 181291/week @ 2023-10-24 189621/week @ 2023-10-31 178802/week @ 2023-11-07 185058/week @ 2023-11-14 151801/week @ 2023-11-21 177923/week @ 2023-11-28 185220/week @ 2023-12-05 171777/week @ 2023-12-12 140303/week @ 2023-12-19 93344/week @ 2023-12-26 165113/week @ 2024-01-02 183281/week @ 2024-01-09 194953/week @ 2024-01-16 200236/week @ 2024-01-23 267546/week @ 2024-01-30

879,423 downloads per month
Used in 2,331 crates (22 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

~260KB