Package chapters.filters
Class SampleFilter
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.filter.Filter<ILoggingEvent>
-
- 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
Constructors Constructor Description SampleFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterReply
decide(ILoggingEvent event)
If the decision is
, then the event will be dropped.FilterReply.DENY
-
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
-
-
-
-
Method Detail
-
decide
public FilterReply decide(ILoggingEvent event)
Description copied from class:Filter
If the decision is
, then the event will be dropped. If the decision isFilterReply.DENY
, then the next filter, if any, will be invoked. If the decision isFilterReply.NEUTRAL
then the event will be logged without consulting with other filters in the chain.FilterReply.ACCEPT
- Specified by:
decide
in classFilter<ILoggingEvent>
- Parameters:
event
- The event to decide upon.
-
-