[JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
jason_mehrens at hotmail.com
Fri Jan 19 22:33:49 UTC 2018
Not my call but adding addInitialRootLoggerHandlers() seems too much like a private detail that would be forever published as part of the public API.
I would rather have have a protected reportError added to LogManager and redirect all internal errors from directly calling System.err to that method.
Then sub-classes could override that method and ignore internal errors generated by the super class.
From: core-libs-dev <core-libs-dev-bounces at openjdk.java.net> on behalf of Mark Thomas <markt at apache.org>
Sent: Friday, January 19, 2018 2:56 PM
To: core-libs-dev at openjdk.java.net
Subject: Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat
On 19/01/18 20:14, Mark Thomas wrote:
> Thanks to both of you for the hints that have got me thinking in new
> directions for a workaround.
Thanks again for the hints. I have a work-around that seems to work:
It feels a bit hacky. I'd still prefer to be able to override
addInitialRootLoggerHandlers() as that strikes me as a cleaner solution.
More information about the core-libs-dev