public class AsyncLoggerContextSelector extends ClassLoaderContextSelector
ContextSelector that manages AsyncLoggerContext instances.
As of version 2.5, this class extends ClassLoaderContextSelector for better web app support.
CONTEXT_MAP, LOGGER| Constructor and Description |
|---|
AsyncLoggerContextSelector() |
| Modifier and Type | Method and Description |
|---|---|
protected LoggerContext |
createContext(java.lang.String name,
java.net.URI configLocation) |
protected java.lang.String |
defaultContextName() |
static boolean |
isSelected()
Returns
true if the user specified this selector as the Log4jContextSelector, to make all loggers
asynchronous. |
protected java.lang.String |
toContextMapKey(java.lang.ClassLoader loader) |
getContext, getContext, getDefault, getLoggerContexts, removeContextpublic static boolean isSelected()
true if the user specified this selector as the Log4jContextSelector, to make all loggers
asynchronous.true if all loggers are asynchronous, false otherwise.protected LoggerContext createContext(java.lang.String name, java.net.URI configLocation)
createContext in class ClassLoaderContextSelectorprotected java.lang.String toContextMapKey(java.lang.ClassLoader loader)
toContextMapKey in class ClassLoaderContextSelectorprotected java.lang.String defaultContextName()
defaultContextName in class ClassLoaderContextSelector