Package net.logstash.logback.status
Class DelegatingStatusListener
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.status.DelegatingStatusListener
- All Implemented Interfaces:
ContextAware,LifeCycle,StatusListener
- Direct Known Subclasses:
LevelFilteringStatusListener
A
StatusListener that delegates to another StatusListener-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusEvent(Status status) booleanvoidsetContext(Context context) voidsetDelegate(StatusListener delegate) voidstart()voidstop()Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.status.StatusListener
isResetResistant
-
Constructor Details
-
DelegatingStatusListener
public DelegatingStatusListener()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
isStarted
public boolean isStarted() -
addStatusEvent
- Specified by:
addStatusEventin interfaceStatusListener
-
setContext
- Specified by:
setContextin interfaceContextAware- Overrides:
setContextin classContextAwareBase
-
getDelegate
-
setDelegate
-