Crates.io | log-mdc |
lib.rs | log-mdc |
version | 0.1.0 |
source | src |
created_at | 2016-10-04 03:41:00.944965 |
updated_at | 2016-10-04 03:41:00.944965 |
description | A mapped diagnostic context (MDC) for use with the `log` crate |
homepage | |
repository | https://github.com/sfackler/rust-log-mdc |
max_upload_size | |
id | 6709 |
size | 18,675 |
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.
Licensed under either of
at your option.
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.