Package ch.qos.logback.classic.filter
Class ThresholdFilter
- All Implemented Interfaces:
ContextAware
,LifeCycle
Filters events below the threshold level.
Events with a level below the specified level will be denied, while events
with a level equal or above the specified level will trigger a
FilterReply.NEUTRAL result, to allow the rest of the filter chain process the
event.
For more information about filters, please refer to the online manual at
http://logback.qos.ch/manual/filters.html#thresholdFilter
- Author:
- Sébastien Pennec
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
ThresholdFilter
public ThresholdFilter()
-
-
Method Details
-
decide
- Specified by:
decide
in classFilter<ILoggingEvent>
-
setLevel
-
start
public void start()- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classFilter<ILoggingEvent>
-