LevelEvaluator.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2002, Log4cpp Project. All rights reserved.
3  *
4  * See the COPYING file for the terms of usage and distribution.
5  */
6 
9 #include <memory>
10 
11 namespace log4cpp
12 {
13  std::auto_ptr<TriggeringEventEvaluator> create_level_evaluator(const FactoryParams& params)
14  {
15  std::string level;
16  params.get_for("level evaluator").required("level", level);
17 
18  return std::auto_ptr<TriggeringEventEvaluator>(new LevelEvaluator(Priority::getPriorityValue(level)));
19  }
20 }
21 
required_params_validator required(const char *param, T &value) const
std::auto_ptr< TriggeringEventEvaluator > create_level_evaluator(const FactoryParams &params)
details::parameter_validator get_for(const char *tag) const
static Value getPriorityValue(const std::string &priorityName)
Definition: Priority.cpp:44


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17