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 behavior to a "deny all unless instructed otherwise" behavior.
Constructor and Description |
---|
DenyAllFilter() |
Modifier and Type | Method and Description |
---|---|
int |
decide(LoggingEvent event)
Always returns the integer constant
Filter.DENY regardless of the LoggingEvent parameter. |
String[] |
getOptionStrings()
Deprecated.
We now use JavaBeans introspection to configure components. Options strings are no longer needed.
|
void |
setOption(String key,
String value)
Deprecated.
Use the setter method for the option directly instead of the generic
setOption method. |
activateOptions, getNext, setNext
public int decide(LoggingEvent event)
Filter.DENY
regardless of the LoggingEvent
parameter.decide
in class Filter
event
- The LoggingEvent to filter.Filter.DENY
.@Deprecated public String[] getOptionStrings()
null
as there are no options.@Deprecated public void setOption(String key, String value)
setOption
method.Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.