logfmt-zerocopy

Crates.iologfmt-zerocopy
lib.rslogfmt-zerocopy
version0.1.0
created_at2026-01-02 15:56:15.510995+00
updated_at2026-01-02 15:56:15.510995+00
descriptionA lightweight parser for Logfmt
homepagehttps://github.com/shshemi/logfmt-zerocopy
repositoryhttps://github.com/shshemi/logfmt-zerocopy
max_upload_size
id2018825
size10,164
Shayan Hashemi (shshemi)

documentation

https://docs.rs/logfmt-zerocopy/latest/logfmt-zerocopy/

README

logfmt

A lightweight parser for logfmt.

Usage

use logfmt::Logfmt;

let line = r#"level=info msg="request completed" duration=42ms"#;

for (key, value) in line.logfmt() {
    println!("{key}: {value}");
}

What is logfmt?

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.

License

MIT

Commit count: 0

cargo fmt