Package ch.qos.logback.classic.filter
Class LevelFilter
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.filter.Filter<ILoggingEvent>
ch.qos.logback.core.filter.AbstractMatcherFilter<ILoggingEvent>
ch.qos.logback.classic.filter.LevelFilter
- All Implemented Interfaces:
ContextAware,LifeCycle
A class that filters events by the level equality.
For more information about this filter, please refer to the online manual at http://logback.qos.ch/manual/filters.html#levelFilter
-
Field Summary
FieldsFields inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter
onMatch, onMismatchFields 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.DENYvoidvoidstart()Methods inherited from class ch.qos.logback.core.filter.AbstractMatcherFilter
getOnMatch, getOnMismatch, setOnMatch, setOnMismatchMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
level
Level level
-
-
Constructor Details
-
LevelFilter
public LevelFilter()
-
-
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.
-
setLevel
-
start
public void start()- Specified by:
startin interfaceLifeCycle- Overrides:
startin classFilter<ILoggingEvent>
-