RFR: 8301627: System.exit and Runtime.exit debug logging [v2]
Daniel Fuchs
dfuchs at openjdk.org
Tue Feb 14 13:13:44 UTC 2023
On Tue, 14 Feb 2023 07:45:07 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> FINE is not a level supported by the System.Logger, it is the level to which DEBUG is mapped when the backend is java.util.logging. I suggest to remove FINE from this description and add an `{@link Loger.Level#DEBUG DEBUG}` around DEBUG.
>
> Roger has updated this but it's still a comment on a non-public class. I think the main question here is whether there should be a note in the System.exit and Runtime.exit to document that these methods log? If not, will it be documented anywhere, maybe a troubleshooting guide to help track down what/who is calling System.exit?
Another way to document that could be to add the commented logger name, and a comment, to https://github.com/openjdk/jdk/blob/master/src/java.logging/share/conf/logging.properties
A new section at the end with some explanation on what this logger prints and how to enable it - with the appropriate wording to make it clear that it's JDK-implementation specific and not part of the spec.
-------------
PR: https://git.openjdk.org/jdk/pull/12517
More information about the core-libs-dev
mailing list