
log4cpp:LayoutAppender (3)
NAME
log4cpp::LayoutAppender - LayoutAppender is a common superclass for all
Appenders that require a Layout.
SYNOPSIS
#include <LayoutAppender.hh>
Inherits log4cpp::AppenderSkeleton.
Inherited by log4cpp::FileAppender, log4cpp::OstreamAppender,
log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and
log4cpp::SyslogAppender.
Public Types
typedef BasicLayout DefaultLayoutType
Public Methods
LayoutAppender (const std::string &name)
virtual ~LayoutAppender ()
virtual bool requiresLayout () const
Check if the appender requires a layout.
virtual void setLayout (Layout *layout=NULL)
Set the Layout for this appender.
Protected Methods
Layout & _getLayout ()
Return the layout of the appender.
DETAILED DESCRIPTION
LayoutAppender is a common superclass for all Appenders that require a
Layout.
MEMBER TYPEDEF DOCUMENTATION
typedef BasicLayout log4cpp::LayoutAppender::DefaultLayoutType
CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
log4cpp::LayoutAppender::LayoutAppender (const std::string & name)
log4cpp::LayoutAppender::~LayoutAppender () [virtual]
MEMBER FUNCTION DOCUMENTATION
Layout & log4cpp::LayoutAppender::_getLayout () [protected]
Return the layout of the appender.
This method is the Layout accessor for subclasses of LayoutAppender.
Returns:
the Layout.
bool log4cpp::LayoutAppender::requiresLayout () [virtual]
Check if the appender requires a layout.
All LayoutAppenders do, therefore this method returns true for all
subclasses.
Returns:
layout The layout to use.
Implements log4cpp::AppenderSkeleton.
AUTHOR
Generated automatically by Doxygen for log4cpp from the source code.
log4cpp 19 Aug 2003 log4cpp::LayoutAppender(3)