| Crates.io | logfmt-zerocopy |
| lib.rs | logfmt-zerocopy |
| version | 0.1.0 |
| created_at | 2026-01-02 15:56:15.510995+00 |
| updated_at | 2026-01-02 15:56:15.510995+00 |
| description | A lightweight parser for Logfmt |
| homepage | https://github.com/shshemi/logfmt-zerocopy |
| repository | https://github.com/shshemi/logfmt-zerocopy |
| max_upload_size | |
| id | 2018825 |
| size | 10,164 |
A lightweight parser for logfmt.
use logfmt::Logfmt;
let line = r#"level=info msg="request completed" duration=42ms"#;
for (key, value) in line.logfmt() {
println!("{key}: {value}");
}
Logfmt is a logging format that encodes data as space-separated key-value pairs:
level=info msg="hello world" count=42
It's human-readable, easy to parse, and widely used in logging.
MIT