|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.spi.Filter org.apache.log4j.filter.DenyAllFilter
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.
Field Summary |
---|
Fields inherited from class org.apache.log4j.spi.Filter |
---|
ACCEPT, DENY, NEUTRAL, next |
Constructor Summary | |
---|---|
DenyAllFilter()
|
Method Summary | |
---|---|
int |
decide(org.apache.log4j.spi.LoggingEvent event)
Always returns the integer constant Filter.DENY
regardless of the LoggingEvent parameter. |
java.lang.String[] |
getOptionStrings()
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed. |
void |
setOption(java.lang.String key,
java.lang.String value)
Deprecated. Use the setter method for the option directly instead of the generic setOption method. |
Methods inherited from class org.apache.log4j.spi.Filter |
---|
activateOptions, getNext, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DenyAllFilter()
Method Detail |
---|
public java.lang.String[] getOptionStrings()
null
as there are no options.
public void setOption(java.lang.String key, java.lang.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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.