Apache log4cxx
Version 0.12.1
|
This filter drops all logging events. More...
#include <denyallfilter.h>
Public Types | |
typedef spi::Filter | BASE_CLASS |
Public Types inherited from log4cxx::spi::Filter | |
enum | FilterDecision { DENY = -1, NEUTRAL = 0, ACCEPT = 1 } |
Public Member Functions | |
DenyAllFilter () | |
FilterDecision | decide (const spi::LoggingEventPtr &event) const |
Always returns the integer constant DENY regardless of the LoggingEvent parameter. More... | |
Public Member Functions inherited from log4cxx::spi::Filter | |
Filter () | |
log4cxx::spi::FilterPtr | getNext () const |
void | setNext (const log4cxx::spi::FilterPtr &newNext) |
void | activateOptions (log4cxx::helpers::Pool &p) |
Usually filters options become active when set. More... | |
void | setOption (const LogString &option, const LogString &value) |
Set option to value . More... | |
Public Member Functions inherited from log4cxx::spi::OptionHandler | |
virtual | ~OptionHandler () |
Public Member Functions inherited from log4cxx::helpers::Object | |
virtual | ~Object () |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
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.
|
inline |
|
inlinevirtual |
Always returns the integer constant DENY regardless of the LoggingEvent parameter.
event | The LoggingEvent to filter. |
Implements log4cxx::spi::Filter.