You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a different logging backend which requires JSON output. Currently, there is no way to do this without reimplementing all of the span tracking done by fmt::Formatter. Most of this logic is in fmt::spans, however, this module is private.
Proposal
Make fmt::spans public or provide some other API.
Workaround
For now, I will just copy the fmt::spans into my project.
PR
I could work on a PR to implement this.
The text was updated successfully, but these errors were encountered:
klotzambein
changed the title
Provide access to fmt::spans or similar API.
Provide access to tracing-subscriber::fmt::spans or similar API.
Sep 20, 2019
Feature Request
Crates
tracing-subscriber (version 0.1.3)
Motivation
I would like to add a different logging backend which requires JSON output. Currently, there is no way to do this without reimplementing all of the span tracking done by
fmt::Formatter
. Most of this logic is infmt::spans
, however, this module is private.Proposal
Make
fmt::spans
public or provide some other API.Workaround
For now, I will just copy the
fmt::spans
into my project.PR
I could work on a PR to implement this.
The text was updated successfully, but these errors were encountered: