Apache log4cxx  Version 0.10.0
DenyAllFilter Class Reference

This filter drops all logging events. More...

Inherits Filter.

List of all members.

Public Types

typedef spi::Filter BASE_CLASS
- Public Types inherited from Filter
enum  FilterDecision { DENY = -1, NEUTRAL = 0, ACCEPT = 1 }

Public Member Functions

 DenyAllFilter ()
FilterDecision decide (const spi::LoggingEventPtr &) const
 Always returns the integer constant DENY regardless of the LoggingEvent parameter.
- Public Member Functions inherited from Filter
 Filter ()
void addRef () const
void releaseRef () const
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.
void setOption (const LogString &option, const LogString &value)
 Set option to value.
- Public Member Functions inherited from OptionHandler
virtual ~OptionHandler ()
- Public Member Functions inherited from Object
virtual const helpers::ClassgetClass () const
virtual ~Object ()
virtual bool instanceof (const Class &clazz) const =0
virtual const void * cast (const Class &clazz) const =0
- Public Member Functions inherited from ObjectImpl
 ObjectImpl ()
virtual ~ObjectImpl ()

Detailed Description

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.


Member Typedef Documentation


Constructor & Destructor Documentation

DenyAllFilter ( )
inline

Member Function Documentation

FilterDecision decide ( const spi::LoggingEventPtr ) const
inlinevirtual

Always returns the integer constant DENY regardless of the LoggingEvent parameter.

Parameters:
eventThe LoggingEvent to filter.
Returns:
Always returns DENY.

Implements Filter.


The documentation for this class was generated from the following file: