|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.classic.selector.ContextJNDISelector
public class ContextJNDISelector
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 | |
---|---|
ContextJNDISelector(LoggerContext context)
|
Method Summary | |
---|---|
LoggerContext |
detachLoggerContext(String loggerContextName)
|
List<String> |
getContextNames()
|
int |
getCount()
Returns the number of managed contexts Used for testing purposes |
LoggerContext |
getDefaultLoggerContext()
|
LoggerContext |
getLoggerContext()
|
LoggerContext |
getLoggerContext(String name)
|
void |
removeLocalContext()
|
void |
setLocalContext(LoggerContext context)
These methods are used by the LoggerContextFilter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextJNDISelector(LoggerContext context)
Method Detail |
---|
public LoggerContext getLoggerContext()
getLoggerContext
in interface ContextSelector
public LoggerContext getDefaultLoggerContext()
getDefaultLoggerContext
in interface ContextSelector
public LoggerContext detachLoggerContext(String loggerContextName)
detachLoggerContext
in interface ContextSelector
public List<String> getContextNames()
getContextNames
in interface ContextSelector
public LoggerContext getLoggerContext(String name)
getLoggerContext
in interface ContextSelector
public int getCount()
public void setLocalContext(LoggerContext context)
context
- public void removeLocalContext()
|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |