Registry / logging / kv-log-macro

kv-log-macro

JSON →
library1.0.7rscratesunverified

Log macro for the log crate's kv-unstable backend, enabling key-value logging.

# Cargo.toml [dependencies] kv-log-macro = "1.0.7"
INSTALL
IMPORT
SIG · KV-LOG-MACRO
K
kv-log-macro
loggingrustv1.0.7
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.

kv_log
use kv_log_macro::kv_log;

Log a key-value event.

use kv_log_macro::kv_log; fn main() { kv_log!(log::Level::Info, "event", {"key" => "value"}); }
Debug
Known issues
gotchaRequires the 'kv_unstable' feature on the log crate.
fix
Add log = { version = "0.4", features = ["kv_unstable"] } to Cargo.toml.
affects: >=1.0.0
Upgrade
Version history
1.0.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
kv-log-macro — cargo add kv-log-macro · libregistry