FilterBasedTriggeringPolicy determines if rolling should be triggered by evaluating the current message against a set of filters.
More...
#include <filterbasedtriggeringpolicy.h>
FilterBasedTriggeringPolicy determines if rolling should be triggered by evaluating the current message against a set of filters.
Unless a filter rejects a message, a rolling event will be triggered.
◆ FilterBasedTriggeringPolicy()
| log4cxx::rolling::FilterBasedTriggeringPolicy::FilterBasedTriggeringPolicy |
( |
| ) |
|
◆ ~FilterBasedTriggeringPolicy()
| virtual log4cxx::rolling::FilterBasedTriggeringPolicy::~FilterBasedTriggeringPolicy |
( |
| ) |
|
|
virtual |
◆ activateOptions()
| void log4cxx::rolling::FilterBasedTriggeringPolicy::activateOptions |
( |
helpers::Pool & | | ) |
|
|
overridevirtual |
◆ addFilter()
| void log4cxx::rolling::FilterBasedTriggeringPolicy::addFilter |
( |
const spi::FilterPtr & | newFilter | ) |
|
Add a filter to end of the filter list.
- Parameters
-
| newFilter | filter to add to end of list. |
◆ clearFilters()
| void log4cxx::rolling::FilterBasedTriggeringPolicy::clearFilters |
( |
| ) |
|
◆ getFilter()
| spi::FilterPtr & log4cxx::rolling::FilterBasedTriggeringPolicy::getFilter |
( |
| ) |
|
◆ isTriggeringEvent()
Determines if a rollover may be appropriate at this time.
If true is returned, RolloverPolicy.rollover will be called but it can determine that a rollover is not warranted.
- Parameters
-
| appender | A reference to the appender. |
| event | A reference to the currently event. |
| filename | The filename for the currently active log file. |
| fileLength | Length of the file in bytes. |
- Returns
- true if a rollover should occur.
Implements log4cxx::rolling::TriggeringPolicy.
◆ setOption()
| void log4cxx::rolling::FilterBasedTriggeringPolicy::setOption |
( |
const LogString & | option, |
|
|
const LogString & | value ) |
|
overridevirtual |
The documentation for this class was generated from the following file: