Skip to main content

JDK 7.0 doesn't refresh handler for specific logger

No replies
hahanizhu
Offline
Joined: 2013-09-06
Points: 0

In JDK 7.0, I use java.util.logging framework, and I defined "test.try.logger.handler=java.util.FileHandler", it works at the first time, but after I changed some properties in logging.properties file(change logger level for some loggers), and call "readConfiguration()" method to make my changes work. But after I call this method, the handlers defined for specific logger are closed, and no way to start them in logging.properties. I think it is weird that after refresh, the handlers defined for specific loggers don't work any more. Is there a work around for this?