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
Print all new incoming status messages on the console (System.out).
- 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()
getPrintStream
protected PrintStream getPrintStream()
- The PrintStream used by derived classes
- Returns:
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
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
Copyright © 2005-2014 QOS.ch. All Rights Reserved.