Package chapters.filters
Class SampleFilter
- All Implemented Interfaces:
ContextAware,LifeCycle
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecide(ILoggingEvent event) If the decision is, then the event will be dropped.FilterReply.DENYMethods inherited from class ch.qos.logback.core.filter.Filter
getName, isStarted, setName, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
SampleFilter
public SampleFilter()
-
-
Method Details
-
decide
Description copied from class:FilterIf 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.NEUTRALthen the event will be logged without consulting with other filters in the chain.FilterReply.ACCEPT- Specified by:
decidein classFilter<ILoggingEvent>- Parameters:
event- The event to decide upon.
-