ch.qos.logback.core.status
Class OnConsoleStatusListener
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.status.OnConsoleStatusListener
- All Implemented Interfaces:
- ContextAware, LifeCycle, StatusListener
public class OnConsoleStatusListener
- extends ContextAwareBase
- implements StatusListener, LifeCycle
Print all new incoming status messages on the console.
- Author:
- Ceki Gülcü
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, toString, wait, wait, wait |
OnConsoleStatusListener
public OnConsoleStatusListener()
addStatusEvent
public void addStatusEvent(Status status)
- Specified by:
addStatusEvent
in interface StatusListener
start
public void start()
- Specified by:
start
in interface LifeCycle
setRetrospective
public void setRetrospective(long retrospective)
getRetrospective
public long getRetrospective()
stop
public void stop()
- Specified by:
stop
in interface LifeCycle
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface LifeCycle
addNewInstanceToContext
public static void addNewInstanceToContext(Context context)
- This utility method adds a new OnConsoleStatusListener to the context passed as parameter.
- Parameters:
context
- - Since:
- 1.0.1