org.jboss.logging.jdk
Class JDKLogManager

java.lang.Object
  extended by java.util.logging.LogManager
      extended by org.jboss.logging.jdk.JDKLogManager

public class JDKLogManager
extends LogManager

Version:
$Revision: 1.1 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
 
Constructor Summary
JDKLogManager()
           
 
Method Summary
 void doReset()
          Invokes the LogManager.reset() method.
 void readConfiguration()
          Overriden to attempt to load the java.util.logging.config.file property value as a classpath resource before treating this as a file as is done by the standard jdk LogManager.
 void reset()
          Ignore the reset operation because the default behavior by the jdk LogManager is to close all handlers.
 
Methods inherited from class java.util.logging.LogManager
addLogger, addPropertyChangeListener, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKLogManager

public JDKLogManager()
Method Detail

readConfiguration

public void readConfiguration()
                       throws IOException,
                              SecurityException
Overriden to attempt to load the java.util.logging.config.file property value as a classpath resource before treating this as a file as is done by the standard jdk LogManager. In additional, if the resource ends in a .xml suffix, the org.jboss.logging.jdk.xml.DOMConfigurator is used to parse a logging configuration that is similar to the 1.2 log4j.xml format.

Overrides:
readConfiguration in class LogManager
Throws:
IOException
SecurityException

reset

public void reset()
Ignore the reset operation because the default behavior by the jdk LogManager is to close all handlers. This results in loss of logging information during the jdk shutdown. The jboss kernel can call doReset to cause a reset of the logging layer as the last step in shutdown.

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.