SpriteOvO / spdlog-rs

Fast, highly configurable Rust logging crate
https://crates.io/crates/spdlog-rs
Apache License 2.0
109 stars 12 forks source link

[Feature Request] Structured logging (KV) support #70

Open SpriteOvO opened 3 months ago

SpriteOvO commented 3 months ago

Structured logging enhances traditional text-based log records with user-defined attributes. Structured logs can be analyzed using a variety of data processing techniques, without needing to find and parse attributes from unstructured text first.

With JsonFormatter (PR #69) added, the KV can be injected into the output logs as a separated JSON object for parsing by third-party programs.

Implementation

Steps / History

A reference is the log kv implementation, we can see if we can improve anything base on that.