To add in catalina.sh
JAVA_OPTS="$JAVA_OPTS "-Dlogback.ContextSelector=JNDI""
| Modifier and Type | Field and Description |
|---|---|
| private final LoggerContext | |
| private final Map | |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private String | |
| public LoggerContext | detachLoggerContext(String loggerContextName)
Implements ch. |
| private URL | |
| public List | |
| public int | Returns: the number of managed contextsReturns the number of managed contexts Used for testing purposes |
| public LoggerContext | |
| public LoggerContext | |
| public LoggerContext | |
| public void | |
| public void | |
| private URL |
| defaultContext | back to summary |
|---|---|
| private final LoggerContext defaultContext | |
| synchronizedContextMap | back to summary |
|---|---|
| private final Map<String, LoggerContext> synchronizedContextMap | |
| threadLocal | back to summary |
|---|---|
| private static final ThreadLocal<LoggerContext> threadLocal | |
| ContextJNDISelector | back to summary |
|---|---|
| public ContextJNDISelector(LoggerContext context) | |
| configureLoggerContextByURL | back to summary |
|---|---|
| private void configureLoggerContextByURL(LoggerContext context, URL url) | |
| conventionalConfigFileName | back to summary |
|---|---|
| private String conventionalConfigFileName(String contextName) | |
| detachLoggerContext | back to summary |
|---|---|
| public LoggerContext detachLoggerContext(String loggerContextName) Implements ch. | |
| findConfigFileURL | back to summary |
|---|---|
| private URL findConfigFileURL(javax. | |
| getContextNames | back to summary |
|---|---|
| public List Implements ch. | |
| getCount | back to summary |
|---|---|
| public int getCount() Returns the number of managed contexts Used for testing purposes
| |
| getDefaultLoggerContext | back to summary |
|---|---|
| public LoggerContext getDefaultLoggerContext() Implements ch. | |
| getLoggerContext | back to summary |
|---|---|
| public LoggerContext getLoggerContext() Implements ch. | |
| getLoggerContext | back to summary |
|---|---|
| public LoggerContext getLoggerContext(String name) Implements ch. | |
| removeLocalContext | back to summary |
|---|---|
| public void removeLocalContext() | |
| setLocalContext | back to summary |
|---|---|
| public void setLocalContext(LoggerContext context) 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. | |
| urlByResourceName | back to summary |
|---|---|
| private URL urlByResourceName(StatusManager sm, String resourceName) | |