log4shib 2.0.0

LayoutAppender.hh
Go to the documentation of this file.
1/*
2 * LayoutAppender.hh
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#ifndef _LOG4SHIB_LAYOUTAPPENDER_HH
11#define _LOG4SHIB_LAYOUTAPPENDER_HH
12
13#include <string>
14#include <log4shib/Portability.hh>
15#include <log4shib/AppenderSkeleton.hh>
16#include <log4shib/BasicLayout.hh>
17
18 namespace log4shib {
19
24 class LOG4SHIB_EXPORT LayoutAppender : public AppenderSkeleton {
25 public:
26
27 typedef BasicLayout DefaultLayoutType;
28
29 LayoutAppender(const std::string& name);
30 virtual ~LayoutAppender();
31
38 virtual bool requiresLayout() const;
39 virtual void setLayout(Layout* layout = NULL);
40
41 protected:
47 Layout& _getLayout();
48
49 private:
50 Layout* _layout;
51 };
52}
53
54#endif // _LOG4SHIB_LAYOUTAPPENDER_HH
55
AppenderSkeleton.hh
BasicLayout.hh
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition: Export.hh:11
Portability.hh
log4shib::AppenderSkeleton
AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of...
Definition: AppenderSkeleton.hh:24
log4shib::BasicLayout
BasicLayout is a simple fixed format Layout implementation.
Definition: BasicLayout.hh:21
log4shib::LayoutAppender
LayoutAppender is a common superclass for all Appenders that require a Layout.
Definition: LayoutAppender.hh:24
log4shib::LayoutAppender::DefaultLayoutType
BasicLayout DefaultLayoutType
Definition: LayoutAppender.hh:27
log4shib::Layout
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16