chapters.filters
Class SampleFilter

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.filter.Filter<ILoggingEvent>
          extended by chapters.filters.SampleFilter
All Implemented Interfaces:
ContextAware, LifeCycle

public class SampleFilter
extends Filter<ILoggingEvent>


Field Summary
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
SampleFilter()
           
 
Method Summary
 FilterReply decide(ILoggingEvent event)
          If the decision is FilterReply.DENY, then the event will be dropped.
 
Methods inherited from class ch.qos.logback.core.filter.Filter
getName, isStarted, setName, start, 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

SampleFilter

public SampleFilter()
Method Detail

decide

public FilterReply decide(ILoggingEvent event)
Description copied from class: Filter
If the decision is FilterReply.DENY, then the event will be dropped. If the decision is FilterReply.NEUTRAL, then the next filter, if any, will be invoked. If the decision is FilterReply.ACCEPT then the event will be logged without consulting with other filters in the chain.

Specified by:
decide in class Filter<ILoggingEvent>
Parameters:
event - The event to decide upon.


Copyright © 2005-2013 QOS.ch. All Rights Reserved.