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
context
Fields inherited from class org.apache.logging.log4j.core.selector.AbstractContextSelector
instanceFactory
Fields inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
DEFAULT_STOP_TIMEOUT, KEY
-
Constructor Summary
ConstructorDescriptionBasicAsyncLoggerContextSelector
(ConfigurableInstanceFactory instanceFactory) -
Method Summary
Methods inherited from class org.apache.logging.log4j.core.selector.BasicContextSelector
contextShutdown, getContext, getContext, getLoggerContexts, hasContext, isClassLoaderDependent, removeContext, shutdown, toString
Methods inherited from class org.apache.logging.log4j.core.selector.AbstractContextSelector
createContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
getContext, getContext
-
Constructor Details
-
BasicAsyncLoggerContextSelector
-
-
Method Details
-
newBuilder
- Overrides:
newBuilder
in classAbstractContextSelector
-
createContext
- Overrides:
createContext
in classBasicContextSelector
-