log-mdc

Crates.iolog-mdc
lib.rslog-mdc
version0.1.0
sourcesrc
created_at2016-10-04 03:41:00.944965
updated_at2016-10-04 03:41:00.944965
descriptionA mapped diagnostic context (MDC) for use with the `log` crate
homepage
repositoryhttps://github.com/sfackler/rust-log-mdc
max_upload_size
id6709
size18,675
cargo publish (github:servo:cargo-publish)

documentation

https://sfackler.github.io/rust-log-mdc/doc/v0.1.0/log_mdc

README

rust-log-mdc

A mapped diagnostic context (MDC) for use with the log crate.

An MDC is a thread local map of strings used to make relevant information from a system available in its log messages. Logging crates such as log4rs will retrieve values from the MDC for output.

For example, a web server may process many requests simultaneously on different threads. Generating an ID for each request and storing it in the MDC makes it easy to partition log messages on a per-request basis.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Commit count: 15

cargo fmt