Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » varia » [javadoc | source]
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.

Fields inherited from org.apache.log4j.spi.Filter:
next,  DENY,  NEUTRAL,  ACCEPT
Method from org.apache.log4j.varia.DenyAllFilter Summary:
decide,   getOptionStrings,   setOption
Methods from org.apache.log4j.spi.Filter:
activateOptions,   decide,   getNext,   setNext
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.varia.DenyAllFilter Detail:
 public int decide(LoggingEvent event) 
 public String[] getOptionStrings() 
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.

    No options to set.