ErrorFileToStdout and ErrorFileToStderr proposed in JDK-8220786 print the error reports only to stdout or stderr, and hs_err file is not generated even if ErrorFile is specified.
Without the switch, the error summary is printed to stdout and everything is printed to hs_err.
I would like to propose new switches which print error reports to both a hs_err file and stdout or stderr, because reports are very important for troubleshooting.
Reporting to Stdout or stderr is useful for investigating immediately after a problem occurred, but if error occurred several times, they may disappear, so we should also leave them in hs_err files.
In the current specification, it is necessary to select hs_err, stdout or stderr.
The switches I propose are ErrorFileWithStdout and ErrorFileWithStderr which print error reporting output to a hs_err file, further redirect it to stdout or stderr respectively.
The '#' section also needs to be reconsidered.
Printing the '#' section to both stdout and stderr is redundant and may lead to misunderstanding that it is another error.
Therefore, when ErrorFileToStderr is specified, error reports should be printed only to stderr.
Without the switch, the error summary is printed to stdout and everything is printed to hs_err.
I would like to propose new switches which print error reports to both a hs_err file and stdout or stderr, because reports are very important for troubleshooting.
Reporting to Stdout or stderr is useful for investigating immediately after a problem occurred, but if error occurred several times, they may disappear, so we should also leave them in hs_err files.
In the current specification, it is necessary to select hs_err, stdout or stderr.
The switches I propose are ErrorFileWithStdout and ErrorFileWithStderr which print error reporting output to a hs_err file, further redirect it to stdout or stderr respectively.
The '#' section also needs to be reconsidered.
Printing the '#' section to both stdout and stderr is redundant and may lead to misunderstanding that it is another error.
Therefore, when ErrorFileToStderr is specified, error reports should be printed only to stderr.
- csr for
-
JDK-8308947 Create new switch to print error reporting output to both hs_err_pid file and stdout/stderr
- Closed
- links to
-
Review openjdk/jdk/14114