JBoss LogManager 1.0.0.GA

org.jboss.logmanager
Class LogManager

java.lang.Object
  extended by java.util.logging.LogManager
      extended by org.jboss.logmanager.LogManager

public final class LogManager
extends LogManager

Simplified log manager. Designed to work around the (many) design flaws of the JDK platform log manager.


Field Summary
 
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
 
Constructor Summary
LogManager()
          Construct a new logmanager instance.
 
Method Summary
 boolean addLogger(Logger logger)
          Do nothing.
 void addPropertyChangeListener(PropertyChangeListener l)
          Do nothing.
 Logger getLogger(String name)
          Get or create a logger with the given name.
 Enumeration<String> getLoggerNames()
          Does nothing.
 String getProperty(String name)
          Does nothing.
static void installSystemErr(String name, Level level)
           
static void installSystemOut(String name, Level level)
           
 void readConfiguration()
          Do nothing.
 void readConfiguration(InputStream ins)
          Do nothing.
 void removePropertyChangeListener(PropertyChangeListener l)
          Do nothing.
 void reset()
          Does nothing.
 
Methods inherited from class java.util.logging.LogManager
checkAccess, getLoggingMXBean, getLogManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogManager

public LogManager()
Construct a new logmanager instance. Attempts to plug a known memory leak in Level as well.

Method Detail

readConfiguration

public void readConfiguration()
Do nothing. Does not support non-programmatic configuraiton.

Overrides:
readConfiguration in class LogManager

readConfiguration

public void readConfiguration(InputStream ins)
Do nothing. Does not support non-programmatic configuraiton.

Overrides:
readConfiguration in class LogManager
Parameters:
ins - ignored

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Do nothing. Properties and their listeners are not supported.

Overrides:
addPropertyChangeListener in class LogManager
Parameters:
l - ignored

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Do nothing. Properties and their listeners are not supported.

Overrides:
removePropertyChangeListener in class LogManager
Parameters:
l - ignored

getProperty

public String getProperty(String name)
Does nothing. Properties are not supported.

Overrides:
getProperty in class LogManager
Parameters:
name - ignored
Returns:
null

reset

public void reset()
Does nothing. This method only causes trouble.

Overrides:
reset in class LogManager

getLoggerNames

public Enumeration<String> getLoggerNames()
Does nothing. Logger names are not available.

Overrides:
getLoggerNames in class LogManager
Returns:
an empty enumeration

addLogger

public boolean addLogger(Logger logger)
Do nothing. Loggers are only added/acquired via getLogger(String).

Overrides:
addLogger in class LogManager
Parameters:
logger - ignored
Returns:
false

getLogger

public Logger getLogger(String name)
Get or create a logger with the given name.

Overrides:
getLogger in class LogManager
Parameters:
name - the logger name
Returns:
the corresponding logger

installSystemOut

public static void installSystemOut(String name,
                                    Level level)

installSystemErr

public static void installSystemErr(String name,
                                    Level level)

JBoss LogManager 1.0.0.GA

Copyright © 2009 JBoss, a division of Red Hat, Inc.