Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
log4cpp::LayoutAppender Class Reference

#include <LayoutAppender.hh>

Inheritance diagram for log4cpp::LayoutAppender:
Inheritance graph
[legend]

Public Types

typedef BasicLayout DefaultLayoutType
 

Public Member Functions

 LayoutAppender (const std::string &name)
 
virtual bool requiresLayout () const
 
virtual void setLayout (Layout *layout=NULL)
 
virtual ~LayoutAppender ()
 
- Public Member Functions inherited from log4cpp::AppenderSkeleton
virtual void close ()=0
 
virtual void doAppend (const LoggingEvent &event)
 
virtual FiltergetFilter ()
 
virtual Priority::Value getThreshold ()
 
virtual bool reopen ()
 
virtual void setFilter (Filter *filter)
 
virtual void setThreshold (Priority::Value priority)
 
virtual ~AppenderSkeleton ()
 
- Public Member Functions inherited from log4cpp::Appender
const std::string & getName () const
 
virtual ~Appender ()
 

Protected Member Functions

Layout_getLayout ()
 
- Protected Member Functions inherited from log4cpp::AppenderSkeleton
virtual void _append (const LoggingEvent &event)=0
 
 AppenderSkeleton (const std::string &name)
 
- Protected Member Functions inherited from log4cpp::Appender
 Appender (const std::string &name)
 

Private Attributes

Layout_layout
 

Additional Inherited Members

- Static Public Member Functions inherited from log4cpp::Appender
static void closeAll ()
 
static AppendergetAppender (const std::string &name)
 
static bool reopenAll ()
 

Detailed Description

LayoutAppender is a common superclass for all Appenders that require a Layout.

Definition at line 24 of file LayoutAppender.hh.

Member Typedef Documentation

Definition at line 27 of file LayoutAppender.hh.

Constructor & Destructor Documentation

log4cpp::LayoutAppender::LayoutAppender ( const std::string &  name)

Definition at line 15 of file LayoutAppender.cpp.

log4cpp::LayoutAppender::~LayoutAppender ( )
virtual

Definition at line 20 of file LayoutAppender.cpp.

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.

Definition at line 36 of file LayoutAppender.cpp.

bool log4cpp::LayoutAppender::requiresLayout ( ) const
virtual

Check if the appender requires a layout. All LayoutAppenders do, therefore this method returns true for all subclasses.

Returns
true.

Implements log4cpp::AppenderSkeleton.

Definition at line 24 of file LayoutAppender.cpp.

void log4cpp::LayoutAppender::setLayout ( Layout layout = NULL)
virtual

Set the Layout for this appender.

Parameters
layoutThe layout to use.

Implements log4cpp::AppenderSkeleton.

Definition at line 28 of file LayoutAppender.cpp.

Member Data Documentation

Layout* log4cpp::LayoutAppender::_layout
private

Definition at line 50 of file LayoutAppender.hh.


The documentation for this class was generated from the following files:


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:10:00