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.
Always returns the integer constant {@link Filter#DENY} regardless of the {@link LoggingEvent} parameter.paramevent The LoggingEvent to filter.returnAlways returns {@link Filter#DENY}. return Filter.DENY;
return Filter.DENY;
Returns null as there are no options.deprecatedWe now use JavaBeans introspection to configure components. Options strings are no longer needed. return null;
null
return null;
No options to set.deprecatedUse the setter method for the option directly instead of the generic setOption method.
setOption