log4cplus_spi_NDCMatchFilter(3)
| log4cplus::spi::NDCMatchFilter(3) | log4cplus | log4cplus::spi::NDCMatchFilter(3) |
NAME
log4cplus::spi::NDCMatchFilter - This is a simple filter based on the string returned by event.getNDC().
SYNOPSIS
#include <filter.h>
Inherits log4cplus::spi::Filter.
Public Member Functions
NDCMatchFilter ()
NDCMatchFilter (const log4cplus::helpers::Properties &p)
virtual FilterResult decide (const InternalLoggingEvent
&event) const
Returns NEUTRAL is there is no string match.
Additional Inherited Members
Detailed Description
This is a simple filter based on the string returned by event.getNDC().
The filter admits three options NeutralOnEmpty, NDCToMatch and AcceptOnMatch.
If NeutralOnEmpty is true and NDCToMatch is empty then NEUTRAL is returned.
If NeutralOnEmpty is true and the value returned by event.getNDC() is empty then NEUTRAL is returned.
If the string returned by event.getNDC() matches NDCToMatch, then if AcceptOnMatch is true, ACCEPT is returned, and if AcceptOnMatch is false, DENY is returned.
If the string returned by event.getNDC() does not match NDCToMatch, then if AcceptOnMatch is true, DENY is returned, and if AcceptOnMatch is false, ACCEPT is returned.
Definition at line 328 of file filter.h.
Constructor & Destructor Documentation
log4cplus::spi::NDCMatchFilter::NDCMatchFilter ()
log4cplus::spi::NDCMatchFilter::NDCMatchFilter (const log4cplus::helpers::Properties & p)
Member Function Documentation
virtual FilterResult log4cplus::spi::NDCMatchFilter::decide (const InternalLoggingEvent & event) const [virtual]
Returns NEUTRAL is there is no string match.
Implements log4cplus::spi::Filter.
Author
Generated automatically by Doxygen for log4cplus from the source code.
| Fri Jun 18 2021 | Version 2.0.6 |
