Class BasicAsyncLoggerContextSelector
java.lang.Object
org.apache.logging.log4j.core.selector.AbstractContextSelector
org.apache.logging.log4j.core.selector.BasicContextSelector
org.apache.logging.log4j.async.logger.BasicAsyncLoggerContextSelector
- All Implemented Interfaces:
ContextSelector,org.apache.logging.log4j.spi.LoggerContextShutdownAware
Returns either this Thread's context or the default
AsyncLoggerContext.
Single-application instances should prefer this implementation over the AsyncLoggerContextSelector
due to the reduced overhead avoiding classloader lookups.-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.selector.BasicContextSelector
contextFields inherited from class org.apache.logging.log4j.core.selector.AbstractContextSelector
instanceFactoryFields inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
DEFAULT_STOP_TIMEOUT, KEY -
Constructor Summary
ConstructorsConstructorDescriptionBasicAsyncLoggerContextSelector(ConfigurableInstanceFactory instanceFactory) -
Method Summary
Methods inherited from class org.apache.logging.log4j.core.selector.BasicContextSelector
contextShutdown, getContext, getContext, getLoggerContexts, hasContext, isClassLoaderDependent, removeContext, shutdown, toStringMethods inherited from class org.apache.logging.log4j.core.selector.AbstractContextSelector
createContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
getContext, getContext
-
Constructor Details
-
BasicAsyncLoggerContextSelector
-
-
Method Details
-
newBuilder
- Overrides:
newBuilderin classAbstractContextSelector
-
createContext
- Overrides:
createContextin classBasicContextSelector
-