Package org.apache.log4j.varia
Class DenyAllFilter
- java.lang.Object
-
- org.apache.log4j.spi.Filter
-
- org.apache.log4j.varia.DenyAllFilter
-
public class DenyAllFilter extends Filter
Denies 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 behavior to a "deny all unless instructed otherwise" behavior.
- Since:
- 0.9.0
-
-
Constructor Summary
Constructors Constructor Description DenyAllFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdecide(LoggingEvent event)Always returns the integer constantFilter.DENYregardless of theLoggingEventparameter.java.lang.String[]getOptionStrings()Deprecated.We now use JavaBeans introspection to configure components.voidsetOption(java.lang.String key, java.lang.String value)Deprecated.Use the setter method for the option directly instead of the genericsetOptionmethod.-
Methods inherited from class org.apache.log4j.spi.Filter
activateOptions, getNext, setNext
-
-
-
-
Method Detail
-
decide
public int decide(LoggingEvent event)
Always returns the integer constantFilter.DENYregardless of theLoggingEventparameter.- Specified by:
decidein classFilter- Parameters:
event- The LoggingEvent to filter.- Returns:
- Always returns
Filter.DENY.
-
getOptionStrings
@Deprecated public java.lang.String[] getOptionStrings()
Deprecated.We now use JavaBeans introspection to configure components. Options strings are no longer needed.Returnsnullas there are no options.
-
setOption
@Deprecated public void setOption(java.lang.String key, java.lang.String value)Deprecated.Use the setter method for the option directly instead of the genericsetOptionmethod.No options to set.
-
-