Skip to content
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

Send logs to stderr, rather than stdout #1524

Merged
merged 1 commit into from
Aug 11, 2023
Merged

Send logs to stderr, rather than stdout #1524

merged 1 commit into from
Aug 11, 2023

Conversation

juanfont
Copy link
Owner

We were sending the logs to stdout, rather that what seems to be the industry practice of stderr.

https://github.com/rs/zerolog#pretty-logging (our log library seems to prefer stderr)
https://www.reddit.com/r/golang/comments/jqvaft/why_does_the_log_package_always_output_to_stderr/ (go standard log sends to stderr)

But you can find other opinions, of course https://12factor.net/logs

Fixes #1519

@juanfont juanfont merged commit e3acc95 into main Aug 11, 2023
48 checks passed
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.

Log(WARN) interferes with "--output json".
2 participants