LevelEvaluator.cpp
Go to the documentation of this file.
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 


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sat Jun 8 2019 18:45:46