Package ch.qos.logback.classic.selector
Class ContextJNDISelector
java.lang.Object
ch.qos.logback.classic.selector.ContextJNDISelector
- All Implemented Interfaces:
ContextSelector
@Deprecated(since="2022-01-27")
public class ContextJNDISelector
extends Object
implements ContextSelector
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
A class that allows the LoggerFactory to access an environment-based
LoggerContext.
To add in catalina.sh
JAVA_OPTS="$JAVA_OPTS "-Dlogback.ContextSelector=JNDI""
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetachLoggerContext(String loggerContextName) Deprecated.Deprecated.intgetCount()Deprecated.Returns the number of managed contexts Used for testing purposesDeprecated.Deprecated.getLoggerContext(String name) Deprecated.voidDeprecated.voidsetLocalContext(LoggerContext context) Deprecated.These methods are used by the LoggerContextFilter.
-
Constructor Details
-
ContextJNDISelector
Deprecated.
-
-
Method Details
-
getDefaultLoggerContext
Deprecated.- Specified by:
getDefaultLoggerContextin interfaceContextSelector
-
detachLoggerContext
Deprecated.- Specified by:
detachLoggerContextin interfaceContextSelector
-
getLoggerContext
Deprecated.- Specified by:
getLoggerContextin interfaceContextSelector
-
getContextNames
Deprecated.- Specified by:
getContextNamesin interfaceContextSelector
-
getLoggerContext
Deprecated.- Specified by:
getLoggerContextin interfaceContextSelector
-
getCount
public int getCount()Deprecated.Returns the number of managed contexts Used for testing purposes- Returns:
- the number of managed contexts
-
setLocalContext
Deprecated.These methods are used by the LoggerContextFilter. They provide a way to tell the selector which context to use, thus saving the cost of a JNDI call at each new request.- Parameters:
context-
-
removeLocalContext
public void removeLocalContext()Deprecated.
-