|
LRAUV
revA
|
A Logger Rule which matches against a given SyslogSeverity If the SyslogEntry's severity equals or exceeds the specified severity the the SyslogSeverityRule return true. More...
#include <LoggerRules.h>


Public Member Functions | |
| SyslogSeverityRule (Syslog::Severity sev, bool orGreater=true) | |
| virtual | ~SyslogSeverityRule (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 | |
| Syslog::Severity | severity_ |
| The LogEntry type we're looking for. More... | |
| bool | orGreater_ |
Additional Inherited Members | |
Protected Member Functions inherited from Rule | |
| Rule (void) | |
| Protected constructor for pure virtual class. More... | |
A Logger Rule which matches against a given SyslogSeverity If the SyslogEntry's severity equals or exceeds the specified severity the the SyslogSeverityRule return true.
It is not necessary to use a TypeRule with this rule, as this rule only accepts SyslogEntry items.
| SyslogSeverityRule::SyslogSeverityRule | ( | Syslog::Severity | sev, |
| bool | orGreater = true |
||
| ) |
|
virtual |
|
virtual |
Does this rule match this LogEntry.
Implements Rule.
References Syslog::CRITICAL, Syslog::DEBUG, Syslog::ERROR, Syslog::FAULT, SyslogEntry::getSeverity(), LogEntry::getType(), Syslog::IMPORTANT, Syslog::INFO, Syslog::NONE, orGreater_, severity_, and LogEntry::SYSLOG_LOG_ENTRY.
|
virtual |
Implements Rule.
References severity_, and Syslog::SeverityToString().
|
private |
Referenced by check().
|
private |
The LogEntry type we're looking for.
Referenced by check(), and toString().