org.apache.juli
public class ClassLoaderLogManager extends LogManager
| Nested Class Summary | |
|---|---|
| protected static class | ClassLoaderLogManager.ClassLoaderLogInfo |
| protected static class | ClassLoaderLogManager.LogNode |
| protected class | ClassLoaderLogManager.RootLogger
This class is needed to instantiate the root of each per classloader
hierarchy. |
| Field Summary | |
|---|---|
| protected Map<ClassLoader,ClassLoaderLogManager.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. |
| Constructor Summary | |
|---|---|
| ClassLoaderLogManager() | |
| Method Summary | |
|---|---|
| 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. |
| Logger | getLogger(String name)
Get the logger associated with the specified name inside
the classloader local configuration. |
| Enumeration<String> | getLoggerNames()
Get an enumeration of the logger names currently defined in the
classloader local configuration. |
| String | getProperty(String name)
Get the value of the specified property in the classloader local
configuration.
|
| void | readConfiguration() |
| void | readConfiguration(InputStream is) |
| protected void | readConfiguration(ClassLoader classLoader)
Read configuration for the specified classloader.
|
| protected void | readConfiguration(InputStream is, ClassLoader classLoader)
Load specified configuration.
|
| protected String | replace(String str)
System property replacement in the given string.
|
Parameters: logger The logger to be added
Parameters: logger parent
Parameters: classLoader The classloader for which we will retrieve or build the configuration
Parameters: name The name of the logger to retrieve
Parameters: name The property name
Parameters: classLoader
Throws: IOException Errot
Parameters: is InputStream to the properties file classLoader for which the configuration will be loaded
Throws: IOException If something wrong happens during loading
Parameters: str The original string
Returns: the modified string