udp-logger-rs

crates.io version build status downloads docs.rs docs

Log macro for log's kv-unstable backend.

Examples

```rust use udploggerrs::info;

fn main() { udploggerrs::UdpLogger::default().init().unwrap(); info!("hello"); info!("hello",); info!("hello {}", "cats"); info!("hello {}", "cats",); let ctx: Vec<(String, String)> = vec![ ("key1".into(), "value1".into()), ("key2".into(), "value2".into()), ]; info!(kvs: &ctx, "hello {}", "cats",); } ```

Installation

sh $ cargo add upd-logger-rs

Safety

This crate uses #![forbid(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