logfmt-zerocopy 0.1.2

A lightweight parser for Logfmt
Documentation
  • Coverage
  • 50%
    2 out of 4 items documented2 out of 3 items with examples
  • Size
  • Source code size: 11.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • shshemi/logfmt-zerocopy
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • shshemi

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