org.jboss.logging
Class JBossJDKLogManager

java.lang.Object
  extended byjava.util.logging.LogManager
      extended byorg.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 $
Author:
Scott.Stark@jboss.org
See Also:
LogManager

Constructor Summary
JBossJDKLogManager()
           
 
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, getLogManager, getProperty, readConfiguration, readConfiguration, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossJDKLogManager

public JBossJDKLogManager()
Method Detail

reset

public void reset()
Ignore the reset operation

See Also:
to force a reset

doReset

public void doReset()
Invokes the LogManager.reset() method.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.