public class DenyAllFilter
extends org.apache.log4j.spi.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.
Constructor and Description |
---|
DenyAllFilter() |
Modifier and Type | Method and Description |
---|---|
int |
decide(org.apache.log4j.spi.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. |
public String[] getOptionStrings()
null
as there are no options.public void setOption(String key, String value)
setOption
method.public int decide(org.apache.log4j.spi.LoggingEvent event)
Filter.DENY
regardless of the LoggingEvent
parameter.decide
in class org.apache.log4j.spi.Filter
event
- The LoggingEvent to filter.Filter.DENY
.Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.