FileDocCategorySizeDatePackage
DenyAllFilter.javaAPI DocApache log4j 1.2.152058Sat Aug 25 00:09:40 BST 2007org.apache.log4j.varia

DenyAllFilter

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.

author
Ceki Gülcü
since
0.9.0

Fields Summary
Constructors Summary
Methods Summary
public intdecide(org.apache.log4j.spi.LoggingEvent event)
Always returns the integer constant {@link Filter#DENY} regardless of the {@link LoggingEvent} parameter.

param
event The LoggingEvent to filter.
return
Always returns {@link Filter#DENY}.

    return Filter.DENY;
  
public java.lang.String[]getOptionStrings()
Returns null as there are no options.

deprecated
We now use JavaBeans introspection to configure components. Options strings are no longer needed.

    return null;
  
public voidsetOption(java.lang.String key, java.lang.String value)
No options to set.

deprecated
Use the setter method for the option directly instead of the generic setOption method.