LRAUV  revA
SyslogSeverityRule Class Reference

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>

Inheritance diagram for SyslogSeverityRule:
Collaboration diagram for SyslogSeverityRule:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

SyslogSeverityRule::SyslogSeverityRule ( Syslog::Severity  sev,
bool  orGreater = true 
)
SyslogSeverityRule::~SyslogSeverityRule ( void  )
virtual

Member Function Documentation

bool SyslogSeverityRule::check ( const LogEntry entry)
virtual
Str SyslogSeverityRule::toString ( void  )
virtual

Serialize this Rule to a Str.

Implements Rule.

References severity_, and Syslog::SeverityToString().

Member Data Documentation

bool SyslogSeverityRule::orGreater_
private

Referenced by check().

Syslog::Severity SyslogSeverityRule::severity_
private

The LogEntry type we're looking for.

Referenced by check(), and toString().


The documentation for this class was generated from the following files: