Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
LevelEvaluator.hh
Go to the documentation of this file.
1
/*
2
* Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
3
* Copyright 2002, Bastiaan Bakker. All rights reserved.
4
*
5
* See the COPYING file for the terms of usage and distribution.
6
*/
7
8
#if !defined(h_3491ecd0_3891_4902_b3ba_15b15d98ae49)
9
#define h_3491ecd0_3891_4902_b3ba_15b15d98ae49
10
11
#include <
log4cpp/TriggeringEventEvaluator.hh
>
12
13
namespace
log4cpp
14
{
15
class
LOG4CPP_EXPORT
LevelEvaluator
:
public
TriggeringEventEvaluator
16
{
17
public
:
18
LevelEvaluator
(
Priority::Value
level) : level_(level) {}
19
virtual
bool
eval
(
const
LoggingEvent
& event)
const
{
return
event
.priority <= level_; }
20
21
private
:
22
Priority::Value
level_
;
23
};
24
}
25
26
#endif // h_3491ecd0_3891_4902_b3ba_15b15d98ae49
log4cpp::LevelEvaluator
Definition:
LevelEvaluator.hh:15
log4cpp::LevelEvaluator::LevelEvaluator
LevelEvaluator(Priority::Value level)
Definition:
LevelEvaluator.hh:18
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::LevelEvaluator::eval
virtual bool eval(const LoggingEvent &event) const
Definition:
LevelEvaluator.hh:19
log4cpp::TriggeringEventEvaluator
Definition:
TriggeringEventEvaluator.hh:15
log4cpp::LoggingEvent
Definition:
LoggingEvent.hh:32
log4cpp::Priority::Value
int Value
Definition:
Priority.hh:85
TriggeringEventEvaluator.hh
log4cpp::LevelEvaluator::level_
Priority::Value level_
Definition:
LevelEvaluator.hh:22
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:10:00