Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
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
7
#include <
log4cpp/LevelEvaluator.hh
>
8
#include <
log4cpp/FactoryParams.hh
>
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
FactoryParams.hh
log4cpp::LevelEvaluator
Definition:
LevelEvaluator.hh:15
log4cpp::details::parameter_validator::required
required_params_validator required(const char *param, T &value) const
Definition:
FactoryParams.hh:134
log4cpp::create_level_evaluator
std::auto_ptr< TriggeringEventEvaluator > create_level_evaluator(const FactoryParams ¶ms)
Definition:
LevelEvaluator.cpp:13
log4cpp::FactoryParams
Definition:
FactoryParams.hh:61
log4cpp
Definition:
AbortAppender.hh:16
LevelEvaluator.hh
log4cpp::FactoryParams::get_for
details::parameter_validator get_for(const char *tag) const
Definition:
FactoryParams.hh:152
log4cpp::Priority::getPriorityValue
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