org.apache.log4j.varia
Class DenyAllFilter
- OptionHandler
public class DenyAllFilter
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.
int | decide(LoggingEvent event) - Always returns the integer constant
Filter.DENY
regardless of the LoggingEvent parameter.
|
String[] | getOptionStrings() - We now use JavaBeans introspection to configure
components.
|
void | setOption(String key, String value) - Use the setter method for the option directly instead
of the generic
setOption method.
|
getOptionStrings
public String[] getOptionStrings()
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)
Use the setter method for the option directly instead
of the generic setOption
method.
No options to set.
Copyright 2000-2005 Apache Software Foundation.