8000 subscriber: Add note about potential misuse of stdout to documentation by Natr1x · Pull Request #3266 · tokio-rs/tracing · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

subscriber: Add note about potential misuse of stdout to documentation #3266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Natr1x
Copy link
@Natr1x Natr1x commented May 2, 2025

Motivation

As noted in #2492 logging to stdout instead of stderr by default is just plain wrong.

It goes against established conventions and also increases the risk of bugs caused by mixing program output with diagnostics.

But since changing a default is (rightly) considered a breaking change this cannot be fixed until version 0.4.

Solution

Simply add a note to the documentation to make it very clear to users that the defaults are probably not what the are expecting and to discourage applications depending on tracing-subscriber from inheriting this default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0