public class ThresholdFilter extends Filter<ILoggingEvent>
context| Constructor and Description |
|---|
ThresholdFilter() |
| Modifier and Type | Method and Description |
|---|---|
FilterReply |
decide(ILoggingEvent event)
If the decision is
, then the event will be
dropped. |
void |
setLevel(java.lang.String level) |
void |
start() |
addError, 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(java.lang.String level)
public void start()
start in interface LifeCyclestart in class Filter<ILoggingEvent>