#include <Appender.hh>
Inheritance diagram for log4cpp::Appender:
Public Methods | |
virtual | ~Appender () |
Destructor for Appender. More... | |
virtual void | doAppend (const LoggingEvent &event)=0 |
Log in Appender specific way. More... | |
virtual bool | reopen ()=0 |
Reopens the output destination of this Appender, e.g. More... | |
virtual void | close ()=0 |
Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
virtual bool | requiresLayout () const=0 |
Check if the appender uses a layout. More... | |
virtual void | setLayout (Layout *layout)=0 |
Set the Layout for this appender. More... | |
const std::string & | getName () const |
Get the name of this appender. More... | |
virtual void | setThreshold (Priority::Value priority)=0 |
Set the threshold priority of this Appender. More... | |
virtual Priority::Value | getThreshold ()=0 |
Get the threshold priority of this Appender. More... | |
virtual void | setFilter (Filter *filter)=0 |
Set a Filter for this appender. More... | |
virtual Filter * | getFilter ()=0 |
Get the Filter for this appender. More... | |
Static Public Methods | |
Appender * | getAppender (const std::string &name) |
Get a pointer to an exitsing Appender. More... | |
bool | reopenAll () |
Call reopen() on all existing Appenders. More... | |
void | closeAll () |
Call reopen() on all existing Appenders. More... | |
Protected Methods | |
Appender (const std::string &name) | |
Constructor for Appender. More... |
|
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. |
|
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. |
|
Call reopen() on all existing Appenders.
|
|
Check if the appender uses a layout.
Implemented in log4cpp::AppenderSkeleton. |
|
Set a Filter for this appender.
Implemented in log4cpp::AppenderSkeleton. |
|
Set the Layout for this appender.
Implemented in log4cpp::AppenderSkeleton. |
|
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. |