Interface NamedContextSelector
- All Superinterfaces:
ContextSelector
- All Known Implementing Classes:
JndiContextSelector
ContextSelectors that have a name.
-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
DEFAULT_STOP_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptionlocateContext
(String name, Object externalContext, URI configLocation) Locate the LoggerContext with the specified name.removeContext
(String name) Locate the LoggerContext with the specified name using the default configuration.Methods inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
getContext, getContext, getContext, getContext, getLoggerContexts, hasContext, isClassLoaderDependent, removeContext, shutdown
-
Method Details
-
locateContext
Locate the LoggerContext with the specified name.- Parameters:
name
- The LoggerContext name.externalContext
- The external context to associate with the LoggerContext.configLocation
- The location of the configuration.- Returns:
- A LoggerContext.
-
removeContext
Locate the LoggerContext with the specified name using the default configuration.- Parameters:
name
- The LoggerContext name.- Returns:
- A LoggerContext.
-