# What's the de facto way to do structured logging in Rust?

**URL:** <https://users.rust-lang.org/t/whats-the-de-facto-way-to-do-structured-logging-in-rust/69917>\
**Category:** uncategorized\
**Created:** [January 6, 2022, 3:06pm UTC](https://users.rust-lang.org/t/whats-the-de-facto-way-to-do-structured-logging-in-rust/69917 "2022-01-06T15:06:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeramyRR](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/jeramyrr/32/4127_2.png) [@jeramyRR](https://users.rust-lang.org/u/jeramyRR)\
**Post date:** [January 6, 2022, 3:06pm UTC](https://users.rust-lang.org/t/whats-the-de-facto-way-to-do-structured-logging-in-rust/69917/1 "2022-01-06T15:06:40Z")

</div>

I'm working on a project that needs to write structured logs to syslog. Is anyone else doing the same thing, and if so, are you using something like [tracing](https://crates.io/crates/tracing)?

---

<div class="post-metadata">

**Author:** ![parasyte](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/parasyte/32/24763_2.png) [@parasyte](https://users.rust-lang.org/u/parasyte)\
**Post date:** [January 6, 2022, 3:36pm UTC](https://users.rust-lang.org/t/whats-the-de-facto-way-to-do-structured-logging-in-rust/69917/2 "2022-01-06T15:36:04Z")

</div>

I wish I had a better answer for you, but I know that structured logging is a work in progress for the `log` and `tracing` crates: [Tracking issue for kv\_unstable (structured logging) · Issue #328 · rust-lang/log (github.com)](https://github.com/rust-lang/log/issues/328)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/system/32/51372_2.png) [@system](https://users.rust-lang.org/u/system)\
**Post date:** [April 6, 2022, 3:37pm UTC](https://users.rust-lang.org/t/whats-the-de-facto-way-to-do-structured-logging-in-rust/69917/3 "2022-04-06T15:37:00Z")

</div>

Closed on April 6, 2022, 3:37pm UTC

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.
