Log4j Version 1.2.14: Class DenyAllFilter

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.varia Class DenyAllFilter

java.lang.Object
  |
  +--org.apache.log4j.spi.Filter
        |
        +--org.apache.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 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ü

 
 
 int
 String[]
 void
 
 
 

DenyAllFilter

public DenyAllFilter()

getOptionStrings

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.

setOption

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.

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.

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.