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

Always send log messages to stderr by default #41653

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

pfitzseb
Copy link
Member

@pfitzseb pfitzseb commented Jul 20, 2021

Log messages should always be printed to stderr by default so programs can distinguish between actual output and diagnostics. In particular, this should not be predicated on the log level, as was introduced in #40423.

Just in case we don't want this PR, a workaround like

using Logging
global_logger(ConsoleLogger(stderr))

should be mentioned in HISTORY.md.

Edit: Would also be lovely if we could get either change into 1.7.

@fredrikekre fredrikekre added backport 1.7 logging The logging framework labels Jul 20, 2021
@fredrikekre fredrikekre merged commit e196b85 into JuliaLang:master Jul 20, 2021
@pfitzseb pfitzseb deleted the sp/log-to-stderr branch July 20, 2021 16:57
KristofferC pushed a commit that referenced this pull request Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging The logging framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants