Download this file
22 lines (17 with data), 574 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | /*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/LevelEvaluator.hh>
#include <log4cpp/FactoryParams.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)));
}
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.