|
LRAUV
revA
|
A Logger Rule which matches against the starting text of a SyslogEntry. More...
#include <LoggerRules.h>


Public Member Functions | |
| SyslogStartRule (const Str &start) | |
| virtual | ~SyslogStartRule (void) |
| virtual bool | check (const LogEntry *entry) |
| Does this rule match this LogEntry. More... | |
| virtual Str | toString (void) |
| Serialize this Rule to a Str. More... | |
Public Member Functions inherited from Rule | |
| virtual | ~Rule (void) |
| Destructor. More... | |
| virtual void | activate () |
| virtual void | deactivate () |
| virtual bool | isActive () |
Private Attributes | |
| Str | start_ |
| The SyslogEntry start text we are looking for. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Rule | |
| Rule (void) | |
| Protected constructor for pure virtual class. More... | |
A Logger Rule which matches against the starting text of a SyslogEntry.
It is not necessary to use a TypeRule with this rule, as this rule only accepts SyslogEntry items.
| SyslogStartRule::SyslogStartRule | ( | const Str & | start | ) |
|
virtual |
|
virtual |
Does this rule match this LogEntry.
Implements Rule.
References SyslogEntry::getMessage(), LogEntry::getType(), start_, Str::startsWith(), and LogEntry::SYSLOG_LOG_ENTRY.
|
virtual |
|
private |
The SyslogEntry start text we are looking for.
Referenced by check(), and toString().