public class DenyAllFilter extends Filter
You can add this filter to the end of a filter chain to switch from the default "accept all unless instructed otherwise" filtering behaviour to a "deny all unless instructed otherwise" behaviour.
构造器和说明 |
---|
DenyAllFilter() |
限定符和类型 | 方法和说明 |
---|---|
int |
decide(LoggingEvent event)
Always returns the integer constant
Filter.DENY
regardless of the LoggingEvent parameter. |
java.lang.String[] |
getOptionStrings()
已过时。
We now use JavaBeans introspection to configure
components. Options strings are no longer needed.
|
void |
setOption(java.lang.String key,
java.lang.String value)
已过时。
Use the setter method for the option directly instead
of the generic
setOption method. |
activateOptions, getNext, setNext
public java.lang.String[] getOptionStrings()
null
as there are no options.public void setOption(java.lang.String key, java.lang.String value)
setOption
method.public int decide(LoggingEvent event)
Filter.DENY
regardless of the LoggingEvent
parameter.decide
在类中 Filter
event
- The LoggingEvent to filter.Filter.DENY
.