LayoutAppender is a common superclass for all Appenders that require a Layout. More...
#include <LayoutAppender.hh>

Public Types | |
| typedef BasicLayout | DefaultLayoutType |
Public Member Functions | |
| LayoutAppender (const std::string &name) | |
| virtual bool | requiresLayout () const |
| Check if the appender requires a layout. More... | |
| virtual void | setLayout (Layout *layout=NULL) |
| Set the Layout for this appender. More... | |
| virtual | ~LayoutAppender () |
Public Member Functions inherited from AppenderSkeleton | |
| virtual void | close ()=0 |
| Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
| virtual void | doAppend (const LoggingEvent &event) |
| Log in Appender specific way. More... | |
| virtual Filter * | getFilter () |
| Get the Filter for this appender. More... | |
| virtual Priority::Value | getThreshold () |
| Get the threshold priority of this Appender. More... | |
| virtual bool | reopen () |
| Reopens the output destination of this Appender, e.g. More... | |
| virtual void | setFilter (Filter *filter) |
| Set a Filter for this appender. More... | |
| virtual void | setThreshold (Priority::Value priority) |
| Set the threshold priority of this Appender. More... | |
| virtual | ~AppenderSkeleton () |
| Destructor for AppenderSkeleton. More... | |
Public Member Functions inherited from Appender | |
| const std::string & | getName () const |
| Get the name of this appender. More... | |
| virtual | ~Appender () |
| Destructor for Appender. More... | |
Protected Member Functions | |
| Layout & | _getLayout () |
| Return the layout of the appender. More... | |
Protected Member Functions inherited from AppenderSkeleton | |
| virtual void | _append (const LoggingEvent &event)=0 |
| Log in Appender specific way. More... | |
| AppenderSkeleton (const std::string &name) | |
| Constructor for AppenderSkeleton. More... | |
Protected Member Functions inherited from Appender | |
| Appender (const std::string &name) | |
| Constructor for Appender. More... | |
Private Member Functions | |
| LayoutAppender & | operator= (const LayoutAppender &) |
Private Attributes | |
| Layout * | _layout |
Additional Inherited Members | |
Static Public Member Functions inherited from Appender | |
| static void | closeAll () |
| Call reopen() on all existing Appenders. More... | |
| static Appender * | getAppender (const std::string &name) |
| Get a pointer to an existing Appender. More... | |
| static bool | reopenAll () |
| Call reopen() on all existing Appenders. More... | |
LayoutAppender is a common superclass for all Appenders that require a Layout.
Definition at line 24 of file LayoutAppender.hh.
Definition at line 27 of file LayoutAppender.hh.
| LayoutAppender::LayoutAppender | ( | const std::string & | name | ) |
|
virtual |
|
protected |
Return the layout of the appender.
This method is the Layout accessor for subclasses of LayoutAppender.
|
private |
|
virtual |
Check if the appender requires a layout.
All LayoutAppenders do, therefore this method returns true for all subclasses.
Implements AppenderSkeleton.
|
virtual |
|
private |
Definition at line 50 of file LayoutAppender.hh.