Package ch.qos.logback.core.status
Class OnPrintStreamStatusListenerBase
- 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
public abstract class OnPrintStreamStatusListenerBase extends ContextAwareBase implements StatusListener, LifeCycle
Print all new incoming status messages on the on the designated PrintStream.
-
-
Constructor Summary
Constructors Constructor Description OnPrintStreamStatusListenerBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStatusEvent(Status status)
String
getPrefix()
long
getRetrospective()
boolean
isStarted()
void
setPrefix(String prefix)
void
setRetrospective(long retrospective)
void
start()
Invoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold.void
stop()
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Method Detail
-
addStatusEvent
public void addStatusEvent(Status status)
- Specified by:
addStatusEvent
in interfaceStatusListener
-
start
public void start()
Invoking the start method can cause the instance to print status messages created less than value of retrospectiveThresold.
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
-
setRetrospective
public void setRetrospective(long retrospective)
-
getRetrospective
public long getRetrospective()
-
-