Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » juli » [javadoc | source]
org.apache.juli
public class: ClassLoaderLogManager [javadoc | source]
java.lang.Object
   java.util.logging.LogManager
      org.apache.juli.ClassLoaderLogManager
Per classloader LogManager implementation.
Nested Class Summary:
protected static final class  ClassLoaderLogManager.LogNode   
protected static final class  ClassLoaderLogManager.ClassLoaderLogInfo   
protected class  ClassLoaderLogManager.RootLogger  This class is needed to instantiate the root of each per classloader hierarchy. 
Field Summary
protected final  Map classLoaderLoggers    Map containing the classloader information, keyed per classloader. A weak hashmap is used to ensure no classloader reference is leaked from application redeployment. 
protected  ThreadLocal prefix    This prefix is used to allow using prefixes for the properties names of handlers and their subcomponents. 
Fields inherited from java.util.logging.LogManager:
LOGGING_MXBEAN_NAME
Method from org.apache.juli.ClassLoaderLogManager Summary:
addLogger,   doSetParentLogger,   getClassLoaderInfo,   getLogger,   getLoggerNames,   getProperty,   readConfiguration,   readConfiguration,   readConfiguration,   readConfiguration,   replace
Methods from java.util.logging.LogManager:
addLogger,   addPropertyChangeListener,   checkAccess,   getLogManager,   getLogger,   getLoggerNames,   getLoggingMXBean,   getProperty,   readConfiguration,   readConfiguration,   removePropertyChangeListener,   reset
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.juli.ClassLoaderLogManager Detail:
 public synchronized boolean addLogger(Logger logger) 
    Add the specified logger to the classloader local configuration.
 protected static  void doSetParentLogger(Logger logger,
    Logger parent) 
    Set parent child relationship between the two specified loggers.
 protected ClassLoaderLogManager.ClassLoaderLogInfo getClassLoaderInfo(ClassLoader classLoader) 
    Retrieve the configuration associated with the specified classloader. If it does not exist, it will be created.
 public synchronized Logger getLogger(String name) 
    Get the logger associated with the specified name inside the classloader local configuration. If this returns null, and the call originated for Logger.getLogger, a new logger with the specified name will be instantiated and added using addLogger.
 public synchronized Enumeration getLoggerNames() 
    Get an enumeration of the logger names currently defined in the classloader local configuration.
 public String getProperty(String name) 
    Get the value of the specified property in the classloader local configuration.
 public  void readConfiguration() throws SecurityException, IOException 
 public  void readConfiguration(InputStream is) throws SecurityException, IOException 
 protected  void readConfiguration(ClassLoader classLoader) throws IOException 
    Read configuration for the specified classloader.
 protected  void readConfiguration(InputStream is,
    ClassLoader classLoader) throws IOException 
    Load specified configuration.
 protected String replace(String str) 
    System property replacement in the given string.