com.twitter.common.util.logging
Class UnresettableLogManager

java.lang.Object
  extended by java.util.logging.LogManager
      extended by com.twitter.common.util.logging.UnresettableLogManager

public class UnresettableLogManager
extends LogManager

A LogManager which by default ignores calls to reset(). This is useful to avoid missing log statements that occur during vm shutdown. The standard LogManager installs a shutdown hook that disables logging and this subclass nullifies that shutdown hook by disabling any reset of the LogManager by default.


Field Summary
static String LOGGING_MANAGER
          The system property that controls which LogManager the java.util.logging subsystem should load.
 
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
 
Constructor Summary
UnresettableLogManager()
           
 
Method Summary
 void reset()
           
 
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
 

Field Detail

LOGGING_MANAGER

public static final String LOGGING_MANAGER
The system property that controls which LogManager the java.util.logging subsystem should load.

See Also:
Constant Field Values
Constructor Detail

UnresettableLogManager

public UnresettableLogManager()
Method Detail

reset

public void reset()
           throws SecurityException
Overrides:
reset in class LogManager
Throws:
SecurityException