org.apache.juli.ClassLoaderLogManager.debug=true. Short configuration information will be sent to
System.err.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| private class | |
| protected static class | |
| protected static class | ClassLoaderLogManager.
This class is needed to instantiate the root of each per classloader hierarchy. |
| Modifier and Type | Field and Description |
|---|---|
| private static ThreadLocal | |
| protected final Map | classLoaderLoggers
Map containing the classloader information, keyed per classloader. |
| public static final String | |
| protected final ThreadLocal | prefix
This prefix is used to allow using prefixes for the properties names of handlers and their subcomponents. |
| protected volatile boolean | useShutdownHook
Determines if the shutdown hook is used to perform any necessary clean-up such as flushing buffered handlers on JVM shutdown. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | addLogger(final Logger
The logger to be added logger)Overrides java. Add the specified logger to the classloader local configuration. |
| protected static void | doSetParentLogger(final Logger
The logger logger, final Logger The parent logger parent)Set parent child relationship between the two specified loggers. |
| private synchronized String | |
| pack-priv static ClassLoader | Returns: The class loader to use to lookup loggers, obtain configuration etc.Obtain the class loader to use to lookup loggers, obtain configuration etc. The search order is:
|
| protected synchronized ClassLoaderLogManager. | Returns: the log configurationThe class loader for which we will retrieve or build the configuration classLoader)Retrieve the configuration associated with the specified classloader. |
| public synchronized Logger | getLogger(final String
The name of the logger to retrieve name)Overrides java. Get the logger associated with the specified name inside the classloader local configuration. |
| public synchronized Enumeration | getLoggerNames()
Overrides java. Get an enumeration of the logger names currently defined in the classloader local configuration. |
| public String | getProperty(String
The property name name)Overrides java. Get the value of the specified property in the classloader local configuration. |
| public boolean | |
| public void | readConfiguration()
Overrides java. Reads and initializes the logging configuration. |
| public void | readConfiguration(InputStream
stream to read properties from is)Overrides java. Reads and initializes the logging configuration from the given input stream. |
| protected synchronized void | readConfiguration(ClassLoader
The classloader classLoader)Read configuration for the specified classloader. |
| protected synchronized void | readConfiguration(InputStream
InputStream to the properties file is, ClassLoader for which the configuration will be loaded classLoader)Load specified configuration. |
| protected String | |
| private String | |
| public synchronized void | |
| private void | |
| public void | |
| public synchronized void |
| addingLocalRootLogger | back to summary |
|---|---|
| private static ThreadLocal<Boolean> addingLocalRootLogger | |
| classLoaderLoggers | back to summary |
|---|---|
| protected final Map<ClassLoader, ClassLoaderLogManager. Map containing the classloader information, keyed per classloader. A weak hashmap is used to ensure no classloader reference is leaked from application redeployment. | |
| DEBUG_PROPERTY | back to summary |
|---|---|
| public static final String DEBUG_PROPERTY | |
| prefix | back to summary |
|---|---|
| protected final ThreadLocal<String> prefix This prefix is used to allow using prefixes for the properties names of handlers and their subcomponents. | |
| useShutdownHook | back to summary |
|---|---|
| protected volatile boolean useShutdownHook Determines if the shutdown hook is used to perform any necessary clean-up such as flushing buffered handlers on
JVM shutdown. Defaults to | |
| ClassLoaderLogManager | back to summary |
|---|---|
| public ClassLoaderLogManager() | |
| addLogger | back to summary |
|---|---|
| public synchronized boolean addLogger(final Logger logger) Overrides java. Add the specified logger to the classloader local configuration.
| |
| doSetParentLogger | back to summary |
|---|---|
| protected static void doSetParentLogger(final Logger logger, final Logger parent) Set parent child relationship between the two specified loggers. | |
| findProperty | back to summary |
|---|---|
| private synchronized String findProperty(String name) | |
| getClassLoader | back to summary |
|---|---|
| pack-priv static ClassLoader getClassLoader() Obtain the class loader to use to lookup loggers, obtain configuration etc. The search order is:
| |
| getClassLoaderInfo | back to summary |
|---|---|
| protected synchronized ClassLoaderLogManager. Retrieve the configuration associated with the specified classloader. If it does not exist, it will be created. If no class loader is specified, the class loader used to load this class is used.
| |
| getLogger | back to summary |
|---|---|
| public synchronized Logger getLogger(final String name) Overrides java. 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.
| |
| getLoggerNames | back to summary |
|---|---|
| public synchronized Enumeration Overrides java. Get an enumeration of the logger names currently defined in the classloader local configuration.
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(String name) Overrides java. Get the value of the specified property in the classloader local configuration.
| |
| isUseShutdownHook | back to summary |
|---|---|
| public boolean isUseShutdownHook() | |
| readConfiguration | back to summary |
|---|---|
| public void readConfiguration() throws IOException, SecurityException Overrides java. Doc from java. Reads and initializes the logging configuration.
If the "java.util.logging.config.class" system property is set, then the
property value is treated as a class name. The given class will be
loaded, an object will be instantiated, and that object's constructor
is responsible for reading in the initial configuration. (That object
may use other system properties to control its configuration.) The
alternate configuration class can use
If "java.util.logging.config.class" system property is not set,
then this method will read the initial configuration from a properties
file and calls the Any registered configuration listener will be invoked after the properties are read.
| |
| readConfiguration | back to summary |
|---|---|
| public void readConfiguration(InputStream is) throws IOException, SecurityException Overrides java. Doc from java. Reads and initializes the logging configuration from the given input stream. Any registered configuration listener will be invoked after the properties are read.
| |
| readConfiguration | back to summary |
|---|---|
| protected synchronized void readConfiguration(ClassLoader classLoader) throws IOException Read configuration for the specified classloader.
| |
| readConfiguration | back to summary |
|---|---|
| protected synchronized void readConfiguration(InputStream is, ClassLoader classLoader) throws IOException Load specified configuration.
| |
| replace | back to summary |
|---|---|
| protected String replace(String str) System property replacement in the given string. | |
| replaceWebApplicationProperties | back to summary |
|---|---|
| private String replaceWebApplicationProperties(String propName) | |
| reset | back to summary |
|---|---|
| public synchronized void reset() throws SecurityException Overrides java. Doc from java. Reset the logging configuration.
For all named loggers, the reset operation removes and closes
all Handlers and (except for the root logger) sets the level
to
| |
| resetLoggers | back to summary |
|---|---|
| private void resetLoggers(ClassLoaderLogManager. | |
| setUseShutdownHook | back to summary |
|---|---|
| public void setUseShutdownHook(boolean useShutdownHook) | |
| shutdown | back to summary |
|---|---|
| public synchronized void shutdown() Shuts down the logging system. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | |
| pack-priv final Map | |
| pack-priv final Properties | |
| pack-priv final ClassLoaderLogManager. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| handlers | back to summary |
|---|---|
| pack-priv final Map<String, Handler> handlers | |
| loggers | back to summary |
|---|---|
| pack-priv final Map<String, Logger> loggers | |
| props | back to summary |
|---|---|
| pack-priv final Properties props | |
| rootNode | back to summary |
|---|---|
| pack-priv final ClassLoaderLogManager. | |
| ClassLoaderLogInfo | back to summary |
|---|---|
| pack-priv ClassLoaderLogInfo(final ClassLoaderLogManager. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| Cleaner | back to summary |
|---|---|
| private Cleaner() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | |
| pack-priv Logger | |
| pack-priv final ClassLoaderLogManager. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ClassLoaderLogManager. | |
| pack-priv Logger | |
| pack-priv void |
| children | back to summary |
|---|---|
| pack-priv final Map<String, ClassLoaderLogManager. | |
| logger | back to summary |
|---|---|
| pack-priv Logger logger | |
| parent | back to summary |
|---|---|
| pack-priv final ClassLoaderLogManager. | |
| LogNode | back to summary |
|---|---|
| pack-priv LogNode(final ClassLoaderLogManager. | |
| LogNode | back to summary |
|---|---|
| pack-priv LogNode(final ClassLoaderLogManager. | |
| findNode | back to summary |
|---|---|
| pack-priv ClassLoaderLogManager. | |
| findParentLogger | back to summary |
|---|---|
| pack-priv Logger findParentLogger() | |
| setParentLogger | back to summary |
|---|---|
| pack-priv void setParentLogger(final Logger parent) | |
| Access | Constructor and Description |
|---|---|
| public |
| RootLogger | back to summary |
|---|---|
| public RootLogger() | |