public class LevelFilter extends AbstractMatcherFilter<ILoggingEvent>
For more information about this filter, please refer to the online manual at http://logback.qos.ch/manual/filters.html#levelFilter
onMatch, onMismatchcontext| Constructor and Description |
|---|
LevelFilter() |
| Modifier and Type | Method and Description |
|---|---|
FilterReply |
decide(ILoggingEvent event)
If the decision is
, then the event will be
dropped. |
void |
setLevel(Level level) |
void |
start() |
getOnMatch, getOnMismatch, setOnMatch, setOnMismatchaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic FilterReply decide(ILoggingEvent event)
FilterFilterReply.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.public void setLevel(Level level)
public void start()
start in interface LifeCyclestart in class Filter<ILoggingEvent>