Skip to content

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