Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
AppenderSkeleton.hh
Go to the documentation of this file.
1
/*
2
* AppenderSkeleton.hh
3
*
4
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2001, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_APPENDERSKELETON_HH
11
#define _LOG4CPP_APPENDERSKELETON_HH
12
13
#include <
log4cpp/Portability.hh
>
14
#include <
log4cpp/Appender.hh
>
15
#include <
log4cpp/Filter.hh
>
16
17
namespace
log4cpp
{
18
24
class
LOG4CPP_EXPORT
AppenderSkeleton
:
public
Appender
{
25
protected
:
31
AppenderSkeleton
(
const
std::string& name);
32
33
public
:
37
virtual
~
AppenderSkeleton
();
38
43
virtual
void
doAppend(
const
LoggingEvent
& event);
44
50
virtual
bool
reopen();
51
56
virtual
void
close() = 0;
57
63
virtual
bool
requiresLayout()
const
= 0;
64
69
virtual
void
setLayout(
Layout
* layout) = 0;
70
77
virtual
void
setThreshold(
Priority::Value
priority);
78
83
virtual
Priority::Value
getThreshold();
84
88
virtual
void
setFilter(
Filter
* filter);
89
94
virtual
Filter
* getFilter();
95
96
protected
:
102
virtual
void
_append(
const
LoggingEvent
& event) = 0;
103
104
105
private
:
106
Priority::Value
_threshold
;
107
Filter
*
_filter
;
108
};
109
}
110
111
#endif // _LOG4CPP_APPENDERSKELETON_HH
Filter.hh
log4cpp::Filter
Definition:
Filter.hh:49
Appender.hh
log4cpp::AppenderSkeleton
Definition:
AppenderSkeleton.hh:24
log4cpp::Layout
Definition:
Layout.hh:22
Portability.hh
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::LoggingEvent
Definition:
LoggingEvent.hh:32
log4cpp::Priority::Value
int Value
Definition:
Priority.hh:85
log4cpp::AppenderSkeleton::_filter
Filter * _filter
Definition:
AppenderSkeleton.hh:107
log4cpp::Appender
Definition:
Appender.hh:33
log4cpp::AppenderSkeleton::_threshold
Priority::Value _threshold
Definition:
AppenderSkeleton.hh:106
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