| java.lang.Object java.util.logging.LogManager org.apache.juli.ClassLoaderLogManager
ClassLoaderLogManager | public class ClassLoaderLogManager extends LogManager (Code) | | Per classloader LogManager implementation.
|
Inner Class :final protected static class LogNode | |
Inner Class :final protected static class ClassLoaderLogInfo | |
Inner Class :protected class RootLogger extends Logger | |
Field Summary | |
final protected Map<ClassLoader, ClassLoaderLogInfo> | classLoaderLoggers Map containing the classloader information, keyed per classloader. | protected ThreadLocal<String> | prefix This prefix is used to allow using prefixes for the properties names
of handlers and their subcomponents. |
classLoaderLoggers | final protected Map<ClassLoader, ClassLoaderLogInfo> classLoaderLoggers(Code) | | Map containing the classloader information, keyed per classloader. A
weak hashmap is used to ensure no classloader reference is leaked from
application redeployment.
|
prefix | protected ThreadLocal<String> prefix(Code) | | This prefix is used to allow using prefixes for the properties names
of handlers and their subcomponents.
|
addLogger | public synchronized boolean addLogger(Logger logger)(Code) | | Add the specified logger to the classloader local configuration.
Parameters: logger - The logger to be added |
doSetParentLogger | protected static void doSetParentLogger(Logger logger, Logger parent)(Code) | | Set parent child relationship between the two specified loggers.
Parameters: logger - Parameters: parent - |
getClassLoaderInfo | protected ClassLoaderLogInfo getClassLoaderInfo(ClassLoader classLoader)(Code) | | Retrieve the configuration associated with the specified classloader. If
it does not exist, it will be created.
Parameters: classLoader - The classloader for which we will retrieve or build the configuration |
getLogger | public synchronized Logger getLogger(String name)(Code) | | 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.
Parameters: name - The name of the logger to retrieve |
getLoggerNames | public synchronized Enumeration<String> getLoggerNames()(Code) | | Get an enumeration of the logger names currently defined in the
classloader local configuration.
|
getProperty | public String getProperty(String name)(Code) | | Get the value of the specified property in the classloader local
configuration.
Parameters: name - The property name |
readConfiguration | protected void readConfiguration(ClassLoader classLoader) throws IOException(Code) | | Read configuration for the specified classloader.
Parameters: classLoader - throws: IOException - Errot |
readConfiguration | protected void readConfiguration(InputStream is, ClassLoader classLoader) throws IOException(Code) | | Load specified configuration.
Parameters: is - InputStream to the properties file Parameters: classLoader - for which the configuration will be loaded throws: IOException - If something wrong happens during loading |
replace | protected String replace(String str)(Code) | | System property replacement in the given string.
Parameters: str - The original string the modified string |
Fields inherited from java.util.logging.LogManager | final public static String LOGGING_MXBEAN_NAME(Code)(Java Doc)
|
|
|