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"
12 
13 namespace log4cpp {
14 
15  LayoutAppender::LayoutAppender(const std::string& name) :
16  AppenderSkeleton(name),
17  _layout(new DefaultLayoutType()) {
18  }
19 
21  delete _layout;
22  }
23 
25  return true;
26  }
27 
29  if (layout != _layout) {
30  Layout *oldLayout = _layout;
31  _layout = (layout == NULL) ? new DefaultLayoutType() : layout;
32  delete oldLayout;
33  }
34  }
35 
37  return *_layout;
38  }
39 }
virtual bool requiresLayout() const
virtual void setLayout(Layout *layout=NULL)
LayoutAppender(const std::string &name)


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