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(String name,
URI configLocation) |
protected String |
defaultContextName() |
static boolean |
isSelected()
Returns
true if the user specified this selector as the Log4jContextSelector, to make all loggers
asynchronous. |
protected String |
toContextMapKey(ClassLoader loader) |
contextShutdown, getContext, getContext, getDefault, getLoggerContexts, removeContext
public AsyncLoggerContextSelector()
public 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(String name, URI configLocation)
createContext
in class ClassLoaderContextSelector
protected String toContextMapKey(ClassLoader loader)
toContextMapKey
in class ClassLoaderContextSelector
protected String defaultContextName()
defaultContextName
in class ClassLoaderContextSelector
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.