https://github.com/embarkstudios/tracing-logfmt
A logfmt formatter for tracing subscriber logs
https://github.com/embarkstudios/tracing-logfmt
Last synced: 5 months ago
JSON representation
A logfmt formatter for tracing subscriber logs
- Host: GitHub
- URL: https://github.com/embarkstudios/tracing-logfmt
- Owner: EmbarkStudios
- License: apache-2.0
- Created: 2022-06-14T12:14:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T08:27:59.000Z (almost 2 years ago)
- Last Synced: 2024-08-08T21:10:42.962Z (almost 2 years ago)
- Language: Rust
- Size: 56.6 KB
- Stars: 38
- Watchers: 7
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `🪵️ tracing-logfmt`
**Logfmt formatter for tracing-subscriber**
[](https://embark.dev)
[](https://discord.gg/dAuKfZS)
[](https://crates.io/crates/tracing-logfmt)
[](https://docs.rs/tracing-logfmt)
[](https://deps.rs/repo/github/EmbarkStudios/tracing-logfmt)
[](https://github.com/EmbarkStudios/tracing-logfmt/actions)
## Logfmt
Logfmt is a compact and simple log format for structured logging. Each log row contains one level of key/value pairs. To keep it as compact and readable as possible, values are only quoted if needed.
```logfmt
key=value otherkey="value with spaces" third="with escaped \"chars\""
```
There is no strict standard for the format, but it was first documented in [this article](https://brandur.org/logfmt) by Brandur Leach.
## Contribution
[](CODE_OF_CONDUCT.md)
We welcome community contributions to this project.
Please read our [Contributor Guide](CONTRIBUTING.md) for more information on how to get started.
Please also read our [Contributor Terms](CONTRIBUTING.md#contributor-terms) before you make any contributions.
Any contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:
### License
This contribution is dual licensed under EITHER OF
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or )
* MIT license ([LICENSE-MIT](LICENSE-MIT) or )
at your option.
For clarity, "your" refers to Embark or any other licensee/user of the contribution.