#include <Appender.hh>
Inheritance diagram for log4cpp::Appender:

Public Methods | |
| virtual | ~Appender () |
| Destructor for Appender. | |
| virtual void | doAppend (const LoggingEvent &event)=0 |
| Log in Appender specific way. | |
| virtual bool | reopen ()=0 |
| Reopens the output destination of this Appender, e.g. | |
| virtual void | close ()=0 |
| Release any resources allocated within the appender such as file handles, network connections, etc. | |
| virtual bool | requiresLayout () const=0 |
| Check if the appender uses a layout. | |
| virtual void | setLayout (Layout *layout)=0 |
| Set the Layout for this appender. | |
| const std::string & | getName () const |
| Get the name of this appender. | |
| virtual void | setThreshold (Priority::Value priority)=0 |
| Set the threshold priority of this Appender. | |
| virtual Priority::Value | getThreshold ()=0 |
| Get the threshold priority of this Appender. | |
| virtual void | setFilter (Filter *filter)=0 |
| Set a Filter for this appender. | |
| virtual Filter * | getFilter ()=0 |
| Get the Filter for this appender. | |
Static Public Methods | |
| Appender * | getAppender (const std::string &name) |
| Get a pointer to an exitsing Appender. | |
| bool | reopenAll () |
| Call reopen() on all existing Appenders. | |
| void | closeAll () |
| Call reopen() on all existing Appenders. | |
Protected Methods | |
| Appender (const std::string &name) | |
| Constructor for Appender. | |
Friends | |
| class | log4cpp::Log4cppCleanup |
|
|
Constructor for Appender. Will only be used in getAppender() (and in derived classes of course).
|
|
|
Destructor for Appender.
|
|
|
Release any resources allocated within the appender such as file handles, network connections, etc.
Implemented in log4cpp::AppenderSkeleton, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender. |
|
|
Call reopen() on all existing Appenders.
|
|
|
Log in Appender specific way.
Implemented in log4cpp::AppenderSkeleton. |
|
|
Get a pointer to an exitsing Appender.
|
|
|
Get the Filter for this appender.
Implemented in log4cpp::AppenderSkeleton. |
|
|
Get the name of this appender. The name identifies the appender.
|
|
|
Get the threshold priority of this Appender.
Implemented in log4cpp::AppenderSkeleton. |
|
|
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Implemented in log4cpp::AppenderSkeleton, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender. |
|
|
Call reopen() on all existing Appenders.
|
|
|
Check if the appender uses a layout.
Implemented in log4cpp::AppenderSkeleton, log4cpp::IdsaAppender, and log4cpp::LayoutAppender. |
|
|
Set a Filter for this appender.
Implemented in log4cpp::AppenderSkeleton. |
|
|
Set the Layout for this appender.
Implemented in log4cpp::AppenderSkeleton, log4cpp::IdsaAppender, and log4cpp::LayoutAppender. |
|
|
Set the threshold priority of this Appender. The Appender will not appender LoggingEvents with a priority lower than the threshold. Use Priority::NOTSET to disable threshold checking.
Implemented in log4cpp::AppenderSkeleton. |
|
|
|
1.2.18