00001 #include <log4cpp/LevelEvaluator.hh> 00002 #include <log4cpp/FactoryParams.hh> 00003 #include <memory> 00004 00005 namespace log4cpp 00006 { 00007 std::auto_ptr<TriggeringEventEvaluator> create_level_evaluator(const FactoryParams& params) 00008 { 00009 std::string level; 00010 params.get_for("level evaluator").required("level", level); 00011 00012 return std::auto_ptr<TriggeringEventEvaluator>(new LevelEvaluator(Priority::getPriorityValue(level))); 00013 } 00014 } 00015