net.floodlightcontroller.debugevent
Class DebugEventAppender<E>

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.UnsynchronizedAppenderBase<E>
          extended by net.floodlightcontroller.debugevent.DebugEventAppender<E>
All Implemented Interfaces:
ch.qos.logback.core.Appender<E>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<E>, ch.qos.logback.core.spi.LifeCycle

public class DebugEventAppender<E>
extends ch.qos.logback.core.UnsynchronizedAppenderBase<E>


Nested Class Summary
static class DebugEventAppender.WarnErrorEvent
           
 
Field Summary
 
Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, started
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
DebugEventAppender()
           
 
Method Summary
protected  void append(E eventObject)
          The logging system calls append for every log message.
static void setDebugEventServiceImpl(IDebugEventService debugEvent)
           
 void start()
           
 
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, stop, toString
 
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, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 

Constructor Detail

DebugEventAppender

public DebugEventAppender()
Method Detail

start

public void start()
Specified by:
start in interface ch.qos.logback.core.spi.LifeCycle
Overrides:
start in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>

setDebugEventServiceImpl

public static void setDebugEventServiceImpl(IDebugEventService debugEvent)

append

protected void append(E eventObject)
The logging system calls append for every log message. This method filters out the WARN and ERROR message and adds to a debug event queue that can be accessed via cli or rest-api or gui.

Specified by:
append in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>