org.apache.log4j.varia
public class DenyAllFilter extends Filter
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
Method Summary | |
---|---|
int | decide(LoggingEvent event)
Always returns the integer constant 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. |
Parameters: event The LoggingEvent to filter.
Returns: Always returns DENY.
Deprecated: We now use JavaBeans introspection to configure components. Options strings are no longer needed.
Returnsnull
as there are no options.Deprecated: Use the setter method for the option directly instead
of the generic setOption
method.