Thanks to visit codestin.com
Credit goes to sourceforge.net

Menu

[31e5cd]: / src / LevelEvaluator.cpp  Maximize  Restore  History

Download this file

19 lines (15 with data), 599 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
/*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/FactoryParams.hh>
#include <log4cpp/LevelEvaluator.hh>
#include <memory>
namespace log4cpp {
std::LOG4CPP_UNIQUE_PTR<TriggeringEventEvaluator> create_level_evaluator(const FactoryParams& params) {
std::string level;
params.get_for("level evaluator").required("level", level);
return std::LOG4CPP_UNIQUE_PTR<TriggeringEventEvaluator>(new LevelEvaluator(Priority::getPriorityValue(level)));
}
} // namespace log4cpp