Apache Log4cxx  Version 1.2.0
Loading...
Searching...
No Matches
log4cxx::filter::DenyAllFilter Class Reference

This filter drops all logging events. More...

#include <denyallfilter.h>

Inheritance diagram for log4cxx::filter::DenyAllFilter:
log4cxx::spi::Filter log4cxx::spi::OptionHandler log4cxx::helpers::Object

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 override
 Always returns the integer constant DENY regardless of the LoggingEvent parameter.
 
- Public Member Functions inherited from log4cxx::spi::Filter
 Filter ()
 
 Filter (std::unique_ptr< FilterPrivate > priv)
 
virtual ~Filter ()
 
log4cxx::spi::FilterPtr getNext () const
 
void setNext (const log4cxx::spi::FilterPtr &newNext)
 
void activateOptions (helpers::Pool &p) override
 Activate the options that were previously set with calls to option setters.
 
void setOption (const LogString &option, const LogString &value) override
 Set option to value.
 
virtual FilterDecision decide (const LoggingEventPtr &event) const =0
 
- Public Member Functions inherited from log4cxx::spi::OptionHandler
virtual ~OptionHandler ()
 
virtual void activateOptions (helpers::Pool &p)=0
 Activate the options that were previously set with calls to option setters.
 
virtual void setOption (const LogString &option, const LogString &value)=0
 Set option to value.
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
 
virtual const helpers::ClassgetClass () const =0
 
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 

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

◆ BASE_CLASS

Constructor & Destructor Documentation

◆ DenyAllFilter()

log4cxx::filter::DenyAllFilter::DenyAllFilter ( )
inline

Member Function Documentation

◆ decide()

FilterDecision log4cxx::filter::DenyAllFilter::decide ( const spi::LoggingEventPtr event) const
inlineoverridevirtual

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

Parameters
eventThe LoggingEvent to filter.
Returns
Always returns DENY.

Implements log4cxx::spi::Filter.


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