ch.qos.logback.core.status
Class OnConsoleStatusListener

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by 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ü

Field Summary
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
OnConsoleStatusListener()
           
 
Method Summary
 void addStatusEvent(Status status)
           
 long getRetrospective()
           
 boolean isStarted()
           
 void setRetrospective(long retrospective)
           
 void start()
           
 void stop()
           
 
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
 

Constructor Detail

OnConsoleStatusListener

public OnConsoleStatusListener()
Method Detail

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-2011 QOS.ch. All Rights Reserved.