Log4j 0.9.1

org.log4j.varia
Class DenyAllFilter

java.lang.Object
  |
  +--org.log4j.spi.Filter
        |
        +--org.log4j.varia.DenyAllFilter
All Implemented Interfaces:
OptionHandler

public class DenyAllFilter
extends Filter

This filter drops all logging events.

You can add this filter to the 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.

Since:
0.9.0
Author:
Ceki Gülcü

Fields inherited from class org.log4j.spi.Filter
ACCEPT, DENY, NEUTRAL, next
 
Constructor Summary
DenyAllFilter()
           
 
Method Summary
 int decide(LoggingEvent event)
          Always returns the integer constant Filter.DENY regardless of the LoggingEvent parameter.
 String[] getOptionStrings()
          Returns null as there are no options.
 void setOption(String key, String value)
          No options to set.
 
Methods inherited from class org.log4j.spi.Filter
activateOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DenyAllFilter

public DenyAllFilter()
Method Detail

decide

public int decide(LoggingEvent event)
Always returns the integer constant Filter.DENY regardless of the LoggingEvent parameter.
Overrides:
decide in class Filter
Parameters:
event - The LoggingEvent to filter.
Returns:
Always returns Filter.DENY.

getOptionStrings

public String[] getOptionStrings()
Returns null as there are no options.

setOption

public void setOption(String key,
                      String value)
No options to set.

Log4j 0.9.1

Please notify me about new log4j releases.