![]() |
Qore Logger Module Reference 1.0
|
Implements filtering according to a regular expression on the event message. More...
#include <Logger.qm.dox.h>
Inherits LoggerFilter.
Public Member Methods | |
| constructor (string regex_str='', bool regex_result=True) | |
| Creates the object. | |
| int | eval (LoggerEvent event) |
| Evaluates the regex and compares with the expected result. | |
| string | getRegex () |
| Returns the current regex. | |
| bool | getRegexResult () |
| Returns the expected result. | |
| setRegex (string regex_str, bool regex_result=True) | |
| Sets the regular expression and the expected result for the filter. | |
Private:Internal Attributes | |
| bool | regexResult |
| expected result | |
| string | regexStr |
| regular string | |
Implements filtering according to a regular expression on the event message.
The rendered event message is tested using a regular expression, and if it does not match the expected result, then logging is rejected
| Logger::LoggerFilterRegex::constructor | ( | string | regex_str = '', |
| bool | regex_result = True |
||
| ) |