public class SampleFilter extends Filter<ILoggingEvent>
context
Constructor and Description |
---|
SampleFilter() |
Modifier and Type | Method and Description |
---|---|
FilterReply |
decide(ILoggingEvent event)
If the decision is
, then the event will be
dropped. |
getName, isStarted, setName, start, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public FilterReply decide(ILoggingEvent event)
Filter
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.decide
in class Filter<ILoggingEvent>
event
- The event to decide upon.Copyright © 2005–2016 QOS.ch. All rights reserved.