Skip to content

Structured Logging

Eduard Mishkurov edited this page May 3, 2026 · 3 revisions

Structured Logging

See also:

  • Core Concepts

Runtime structured output

JSON/XML directly at runtime.

Controlled by:

  • OutputFlags::Format
  • config ("format": "json")

Custom fields

structured_fields allows renaming.


Streaming nature

  • JSON → JSONL
  • XML → fragments

Post-processing

logmefmt converts logs:

logmefmt --input app.log --output app.json --finalize


When to use

Runtime:

  • real-time ingestion

logmefmt:

  • offline conversion

Clone this wiki locally