log4cpp  1.1.6
LevelEvaluator.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
3  * Copyright 2002, Bastiaan Bakker. All rights reserved.
4  *
5  * See the COPYING file for the terms of usage and distribution.
6  */
7 
8 #if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49)
9 #define h_3491ecd0_3891_4902_b3ba_15b15d98ae49
10 
12 
13 namespace log4cpp {
15  public:
16  LevelEvaluator(Priority::Value level) : level_(level) {}
17  virtual bool eval(const LoggingEvent& event) const {
18  return event.priority <= level_;
19  }
20 
21  private:
22  Priority::Value level_;
23  };
24 } // namespace log4cpp
25 
26 #endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49
virtual bool eval(const LoggingEvent &event) const
Definition: LevelEvaluator.hh:17
Definition: LevelEvaluator.hh:14
LevelEvaluator(Priority::Value level)
Definition: LevelEvaluator.hh:16
#define LOG4CPP_EXPORT
Definition: Export.hh:26
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: AbortAppender.hh:16
Definition: TriggeringEventEvaluator.hh:14
The internal representation of logging events.
Definition: LoggingEvent.hh:32
int Value
The type of Priority Values.
Definition: Priority.hh:85