log4shib 2.0.1
Loading...
Searching...
No Matches
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>
17
18namespace log4shib {
19
25 public:
26
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:
48
49 private:
50 Layout* _layout;
51 };
52}
53
54#endif // _LOG4SHIB_LAYOUTAPPENDER_HH
55
#define LOG4SHIB_EXPORT
Definition Export.hh:11
AppenderSkeleton(const std::string &name)
Constructor for AppenderSkeleton.
Definition AppenderSkeleton.cpp:15
BasicLayout is a simple fixed format Layout implementation.
Definition BasicLayout.hh:21
Layout & _getLayout()
Return the layout of the appender.
Definition LayoutAppender.cpp:36
virtual bool requiresLayout() const
Check if the appender requires a layout.
Definition LayoutAppender.cpp:24
BasicLayout DefaultLayoutType
Definition LayoutAppender.hh:27
LayoutAppender(const std::string &name)
Definition LayoutAppender.cpp:15
virtual void setLayout(Layout *layout=NULL)
Set the Layout for this appender.
Definition LayoutAppender.cpp:28
Extend this abstract class to create your own log layout format.
Definition Layout.hh:22
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16