12 #ifndef LOGGERRULES_H_
13 #define LOGGERRULES_H_
70 Rule *ruleThreeIn = NULL,
71 Rule *ruleFourIn = NULL,
72 Rule *ruleFiveIn = NULL,
73 Rule *ruleSizIn = NULL,
74 Rule *ruleSevenIn = NULL );
100 Rule *ruleThreeIn = NULL,
101 Rule *ruleFourIn = NULL,
102 Rule *ruleFiveIn = NULL );
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:80
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:301
virtual void activate()
Definition: LoggerRules.cpp:23
bool orGreater_
Definition: LoggerRules.h:215
AndRule(Rule *ruleOneIn, Rule *ruleTwoIn, Rule *ruleThreeIn=NULL, Rule *ruleFourIn=NULL, Rule *ruleFiveIn=NULL, Rule *ruleSizIn=NULL, Rule *ruleSevenIn=NULL)
Definition: LoggerRules.cpp:38
Str start_
The SyslogEntry start text we are looking for.
Definition: LoggerRules.h:240
EventEntry::EventType eventType_
The LogEntry type we're looking for.
Definition: LoggerRules.h:187
virtual ~NotRule(void)
Definition: LoggerRules.cpp:157
bool dataWrite_
The LogEntry type we're looking for.
Definition: LoggerRules.h:271
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:276
virtual ~OrRule(void)
Definition: LoggerRules.cpp:115
virtual ~SyslogSeverityRule(void)
Definition: LoggerRules.cpp:216
A logging Rule implementing a logical NOT() of another rules.
Definition: LoggerRules.h:123
Rule * ruleFour_
Definition: LoggerRules.h:115
Type
Defines an enum for "typing" the various LogEntries.
Definition: LogEntry.h:38
Rule * ruleSeven_
Definition: LoggerRules.h:87
Rule * ruleSix_
Definition: LoggerRules.h:87
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:254
EventType
Type of data event.
Definition: EventEntry.h:58
NotRule(Rule *ruleIn)
Definition: LoggerRules.cpp:152
EventTypeRule(EventEntry::EventType eventIn)
Definition: LoggerRules.cpp:189
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:162
A Logger Rule which matches against a given LogEvent::EventEntry.
Definition: LoggerRules.h:173
unsigned int slateElementURICount_
Definition: LoggerRules.h:306
Rule * ruleTwo_
Definition: LoggerRules.h:87
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:91
virtual ~AndRule(void)
Definition: LoggerRules.cpp:54
Rule * ruleFour_
Definition: LoggerRules.h:87
A logging Rule implementing a logical OR() between two other rules.
Definition: LoggerRules.h:95
TypeRule(LogEntry::Type typeIn)
Definition: LoggerRules.cpp:172
One "entry" in a LogQueue.
Definition: LogEntry.h:33
virtual ~DataWriteRule(void)
Definition: LoggerRules.cpp:273
A Logger Rule which specifies either data writes or data reads.
Definition: LoggerRules.h:257
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:219
virtual ~EventTypeRule(void)
Definition: LoggerRules.cpp:193
DataWriteRule(bool dataWrite)
Definition: LoggerRules.cpp:269
unsigned short code_
Definition: LoggerRules.h:305
virtual ~SyslogStartRule(void)
Definition: LoggerRules.cpp:251
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:206
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:242
DataNameRule(const Str &dataName, bool dataWrite=true)
Definition: LoggerRules.cpp:291
A logging Rule which matches against a given LogEntry::Type.
Definition: LoggerRules.h:147
Rule * ruleFive_
Definition: LoggerRules.h:115
Replacement for standard template class string.
Definition: Str.h:12
virtual ~Rule(void)
Destructor.
Definition: LoggerRules.h:30
SyslogStartRule(const Str &start)
Definition: LoggerRules.cpp:247
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:264
LogEntry::Type type_
The LogEntry type we're looking for.
Definition: LoggerRules.h:161
Rule * ruleThree_
Definition: LoggerRules.h:115
Abstract base class for classes that are used by LogEngine to determine which LogWriter(s) to use for...
Definition: LoggerRules.h:26
A Logger Rule which matches against the starting text of a SyslogEntry.
Definition: LoggerRules.h:226
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:328
Rule * ruleFive_
Definition: LoggerRules.h:87
Contains the DataEntry class definition.
virtual void deactivate()
Definition: LoggerRules.cpp:28
Rule * ruleTwo_
Definition: LoggerRules.h:115
A Logger Rule which specifies either data writes or data reads using an element with an ElementURI ma...
Definition: LoggerRules.h:291
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:167
Rule * ruleOne_
Definition: LoggerRules.h:87
Rule * ruleThree_
Definition: LoggerRules.h:87
virtual bool isActive()
Definition: LoggerRules.cpp:33
A Logger Rule which matches against a given SyslogSeverity If the SyslogEntry's severity equals or ex...
Definition: LoggerRules.h:200
Contains the SyslogEntry class definition.
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:142
SyslogSeverityRule(Syslog::Severity sev, bool orGreater=true)
Definition: LoggerRules.cpp:211
const Str dataName_
Definition: LoggerRules.h:304
virtual Str toString(void)=0
Serialize this Rule to a Str.
virtual bool check(const LogEntry *entry)=0
Does this rule match this LogEntry.
bool active_
Definition: LoggerRules.h:56
A logging Rule implementing a logical AND() between two other rules.
Definition: LoggerRules.h:65
virtual ~TypeRule(void)
Definition: LoggerRules.cpp:176
Severity
An attempt to define different levels of syslog severity.
Definition: Syslog.h:28
OrRule(Rule *ruleOneIn, Rule *ruleTwoIn, Rule *ruleThreeIn=NULL, Rule *ruleFourIn=NULL, Rule *ruleFiveIn=NULL)
Definition: LoggerRules.cpp:103
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:196
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:286
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:179
Rule * ruleOne_
Definition: LoggerRules.h:115
virtual ~DataNameRule(void)
Definition: LoggerRules.cpp:298
Rule * rule_
Definition: LoggerRules.h:139
virtual Str toString(void)
Serialize this Rule to a Str.
Definition: LoggerRules.cpp:184
virtual bool check(const LogEntry *entry)
Does this rule match this LogEntry.
Definition: LoggerRules.cpp:133
Contains the EventEntry class definition.
Syslog::Severity severity_
The LogEntry type we're looking for.
Definition: LoggerRules.h:214
Rule(void)
Protected constructor for pure virtual class.
Definition: LoggerRules.cpp:19