Class DelegatingAppender<T>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<T>
org.springframework.geode.logging.slf4j.logback.DelegatingAppender<T>
- All Implemented Interfaces:
ch.qos.logback.core.Appender<T>
,ch.qos.logback.core.spi.ContextAware
,ch.qos.logback.core.spi.FilterAttachable<T>
,ch.qos.logback.core.spi.LifeCycle
public class DelegatingAppender<T>
extends ch.qos.logback.core.AppenderBase<T>
DelegatingAppender
is an SLF4J Appender
that delegates to the configured Appender
.
If no Appender
was configured, then the DelegatingAppender
delegates to the NOPAppender
.- Since:
- 1.3.0
- See Also:
-
Appender
AppenderBase
NOPAppender
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final ch.qos.logback.core.Appender
protected static final String
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected ch.qos.logback.core.Appender<T>
void
setAppender
(ch.qos.logback.core.Appender<T> appender) Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
DEFAULT_APPENDER
protected static final ch.qos.logback.core.Appender DEFAULT_APPENDER -
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
DelegatingAppender
public DelegatingAppender()
-
-
Method Details
-
setAppender
-
getAppender
-
append
- Specified by:
append
in classch.qos.logback.core.AppenderBase<T>
-