org.apache.log4j.varia
public class: DenyAllFilter [javadoc |
source]
java.lang.Object
org.apache.log4j.spi.Filter
org.apache.log4j.varia.DenyAllFilter
All Implemented Interfaces:
OptionHandler
This filter drops all logging events.
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.
- author:
Ceki - Gülcü
- since:
0.9.0 -
| Method from org.apache.log4j.varia.DenyAllFilter Detail: |
public int decide(LoggingEvent event) {
return Filter.DENY;
}
|
public String[] getOptionStrings() {
return null;
} Deprecated! We - now use JavaBeans introspection to configure
components. Options strings are no longer needed.
Returns null as there are no options. |
public void setOption(String key,
String value) {
} Deprecated! Use - the setter method for the option directly instead
of the generic setOption method.
|