desruisseaux commented on issue #11683: URL: https://github.com/apache/maven/issues/11683#issuecomment-3814325307
I confirm, by default `java.util.logging` logs to `stderr`, but this is configurable. I believe that the reason for `stderr` is because in a command-line application, `stdout` may be used for an application output intended to be parsed by other applications. If logs were also sent to `stdout`, they would be mixed with the application output. Example: imagine a `sort` application taking lines from `stdin` and sending sorted lines to `stdout`. We do not want the log records to appear in the middle of sorted lines. Since there is no `stdlog`, the less bad choice seems to be `stderr`. That way, we can redirect the application output and the logs in two different files on the command-line. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
