org.jboss.logging
Class JBossJDKLogManager
java.lang.Object
java.util.logging.LogManager
org.jboss.logging.JBossJDKLogManager
public class JBossJDKLogManager
- extends LogManager
A simple extension to the default JDK LogManager that overrides the reset
call to a noop to avoid the current behavior of the LogManager installing
a shutdown hook which calls reset. The problem with this behavior is that
all usage of the logging api during shutdown produces no output.
The #doReset() method can be called after the jboss shutdown hook operates
to allow the logging layer to cleanup while still allowing jboss components
to use the jdk logging layer.
Install using -Djava.util.logging.manager=org.jboss.logging.JBossJDKLogManager
- Version:
- $Revision: 1.1.2.1 $
- Author:
- Scott.Stark@jboss.org
- See Also:
LogManager
Method Summary |
void |
doReset()
Invokes the LogManager.reset() method. |
void |
reset()
Ignore the reset operation |
Methods inherited from class java.util.logging.LogManager |
addLogger, addPropertyChangeListener, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossJDKLogManager
public JBossJDKLogManager()
reset
public void reset()
- Ignore the reset operation
- Overrides:
reset
in class LogManager
- See Also:
to force a reset
doReset
public void doReset()
- Invokes the LogManager.reset() method.
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.