public abstract class Filter<E> extends ContextAwareBase implements LifeCycle
We suggest that you first try to use the built-in rules before rushing to write your own custom filters.
For more information about filters, please refer to the online manual at http://logback.qos.ch/manual/filters.html
context| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
abstract FilterReply |
decide(E event)
If the decision is
, then the event will be
dropped. |
java.lang.String |
getName() |
boolean |
isStarted() |
void |
setName(java.lang.String name) |
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic abstract FilterReply decide(E event)
FilterReply.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.event - The event to decide upon.public java.lang.String getName()
public void setName(java.lang.String name)