Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
LayoutAppender.cpp
Go to the documentation of this file.
1
/*
2
* LayoutAppender.cpp
3
*
4
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2000, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#include "
PortabilityImpl.hh
"
11
#include <
log4cpp/LayoutAppender.hh
>
12
13
namespace
log4cpp
{
14
15
LayoutAppender::LayoutAppender
(
const
std::string& name) :
16
AppenderSkeleton
(name),
17
_layout(new
DefaultLayoutType
()) {
18
}
19
20
LayoutAppender::~LayoutAppender
() {
21
delete
_layout
;
22
}
23
24
bool
LayoutAppender::requiresLayout
()
const
{
25
return
true
;
26
}
27
28
void
LayoutAppender::setLayout
(
Layout
* layout) {
29
if
(layout !=
_layout
) {
30
Layout
*oldLayout =
_layout
;
31
_layout
= (layout == NULL) ?
new
DefaultLayoutType
() : layout;
32
delete
oldLayout;
33
}
34
}
35
36
Layout
&
LayoutAppender::_getLayout
() {
37
return
*
_layout
;
38
}
39
}
log4cpp::LayoutAppender::_layout
Layout * _layout
Definition:
LayoutAppender.hh:50
PortabilityImpl.hh
log4cpp::LayoutAppender::requiresLayout
virtual bool requiresLayout() const
Definition:
LayoutAppender.cpp:24
log4cpp::LayoutAppender::DefaultLayoutType
BasicLayout DefaultLayoutType
Definition:
LayoutAppender.hh:27
log4cpp::LayoutAppender::~LayoutAppender
virtual ~LayoutAppender()
Definition:
LayoutAppender.cpp:20
log4cpp::AppenderSkeleton
Definition:
AppenderSkeleton.hh:24
log4cpp::Layout
Definition:
Layout.hh:22
log4cpp::BasicLayout
Definition:
BasicLayout.hh:21
log4cpp::LayoutAppender::_getLayout
Layout & _getLayout()
Definition:
LayoutAppender.cpp:36
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::LayoutAppender::setLayout
virtual void setLayout(Layout *layout=NULL)
Definition:
LayoutAppender.cpp:28
log4cpp::LayoutAppender::LayoutAppender
LayoutAppender(const std::string &name)
Definition:
LayoutAppender.cpp:15
LayoutAppender.hh
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