Registry / logging / log-mdc

log-mdc

JSON →
library0.1.0rscratesunverified

A mapped diagnostic context (MDC) for use with the `log` crate to add contextual data to log messages.

# Cargo.toml [dependencies] log-mdc = "0.1.0"
INSTALL
IMPORT
SIG · LOG-MDC
L
log-mdc
loggingrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mdc
use log_mdc::Mdc;

Inserts a key-value pair into the MDC for logging context.

use log_mdc::Mdc; fn main() { Mdc::insert("user", "alice"); log::info!("User action"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
log-mdc — cargo add log-mdc · libregistry