log4cpp 1.1
|
00001 /* 00002 * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. 00003 * Copyright 2002, Bastiaan Bakker. All rights reserved. 00004 * 00005 * See the COPYING file for the terms of usage and distribution. 00006 */ 00007 00008 #if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49) 00009 #define h_3491ecd0_3891_4902_b3ba_15b15d98ae49 00010 00011 #include <log4cpp/TriggeringEventEvaluator.hh> 00012 00013 namespace log4cpp 00014 { 00015 class LOG4CPP_EXPORT LevelEvaluator : public TriggeringEventEvaluator 00016 { 00017 public: 00018 LevelEvaluator(Priority::Value level) : level_(level) {} 00019 virtual bool eval(const LoggingEvent& event) const { return event.priority <= level_; } 00020 00021 private: 00022 Priority::Value level_; 00023 }; 00024 } 00025 00026 #endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49