java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.status.OnPrintStreamStatusListenerBase
- All Implemented Interfaces:
ContextAware,LifeCycle,StatusListener
- Direct Known Subclasses:
OnConsoleStatusListener,OnErrorConsoleStatusListener,OnFileStatusListener
public abstract class OnPrintStreamStatusListenerBase
extends ContextAwareBase
implements StatusListener, LifeCycle
Print all new incoming status messages on the designated PrintStream.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusEvent(Status status) protected abstract PrintStreamThe PrintStream used by derived classeslongbooleanReset resistant status listeners return true here.booleanvoidvoidsetResetResistant(boolean resetResistant) voidsetRetrospective(long retrospective) voidstart()Invoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold.voidstop()Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
OnPrintStreamStatusListenerBase
public OnPrintStreamStatusListenerBase()
-
-
Method Details
-
getPrintStream
The PrintStream used by derived classes- Returns:
-
addStatusEvent
- Specified by:
addStatusEventin interfaceStatusListener
-
start
Invoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold. -
getPrefix
-
setPrefix
-
setRetrospective
-
getRetrospective
-
stop
-
isStarted
-
isResetResistant
Description copied from interface:StatusListenerReset resistant status listeners return true here. Default is false.- Specified by:
isResetResistantin interfaceStatusListener- Returns:
- whether this listener is reset resistant
-
setResetResistant
-