Loading...
Searching...
No Matches
LayoutAppender.hh
Go to the documentation of this file.
/*
* LayoutAppender.hh
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_LAYOUTAPPENDER_HH
#define _LOG4SHIB_LAYOUTAPPENDER_HH
#include <string>
#include <log4shib/Portability.hh>
#include <log4shib/AppenderSkeleton.hh>
#include <log4shib/BasicLayout.hh>
namespace log4shib {
class LOG4SHIB_EXPORT LayoutAppender : public AppenderSkeleton {
public:
typedef BasicLayout DefaultLayoutType;
LayoutAppender(const std::string& name);
virtual ~LayoutAppender();
virtual bool requiresLayout() const;
virtual void setLayout(Layout* layout = NULL);
protected:
Layout& _getLayout();
private:
Layout* _layout;
};
}
#endif // _LOG4SHIB_LAYOUTAPPENDER_HH
AppenderSkeleton.hh
BasicLayout.hh
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition Export.hh:11
Portability.hh
log4shib::AppenderSkeleton::AppenderSkeleton
AppenderSkeleton(const std::string &name)
Constructor for AppenderSkeleton.
Definition AppenderSkeleton.cpp:15
log4shib::BasicLayout
BasicLayout is a simple fixed format Layout implementation.
Definition BasicLayout.hh:21
log4shib::LayoutAppender::_getLayout
Layout & _getLayout()
Return the layout of the appender.
Definition LayoutAppender.cpp:36
log4shib::LayoutAppender::requiresLayout
virtual bool requiresLayout() const
Check if the appender requires a layout.
Definition LayoutAppender.cpp:24
log4shib::LayoutAppender::DefaultLayoutType
BasicLayout DefaultLayoutType
Definition LayoutAppender.hh:27
log4shib::LayoutAppender::LayoutAppender
LayoutAppender(const std::string &name)
Definition LayoutAppender.cpp:15
log4shib::LayoutAppender::setLayout
virtual void setLayout(Layout *layout=NULL)
Set the Layout for this appender.
Definition LayoutAppender.cpp:28
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