log4cpp  1.1.1
LevelEvaluator.hh
Go to the documentation of this file.
1 #if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49)
2 #define h_3491ecd0_3891_4902_b3ba_15b15d98ae49
3 
5 
6 namespace log4cpp
7 {
9  {
10  public:
11  LevelEvaluator(Priority::Value level) : level_(level) {}
12  virtual bool eval(const LoggingEvent& event) const { return event.priority <= level_; }
13 
14  private:
15  Priority::Value level_;
16  };
17 }
18 
19 #endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49
virtual bool eval(const LoggingEvent &event) const
Definition: LevelEvaluator.hh:12
Definition: LevelEvaluator.hh:8
LevelEvaluator(Priority::Value level)
Definition: LevelEvaluator.hh:11
#define LOG4CPP_EXPORT
Definition: Export.hh:19
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: AbortAppender.hh:16
Definition: TriggeringEventEvaluator.hh:8
The internal representation of logging events.
Definition: LoggingEvent.hh:32
int Value
The type of Priority Values.
Definition: Priority.hh:85