#include <AppenderSkeleton.hh>
Public Member Functions | |
virtual void | close ()=0 |
virtual void | close ()=0 |
virtual void | doAppend (const LoggingEvent &event) |
virtual void | doAppend (const LoggingEvent &event) |
virtual Filter * | getFilter () |
virtual Filter * | getFilter () |
virtual Priority::Value | getThreshold () |
virtual Priority::Value | getThreshold () |
virtual bool | reopen () |
virtual bool | reopen () |
virtual bool | requiresLayout () const =0 |
virtual bool | requiresLayout () const =0 |
virtual void | setFilter (Filter *filter) |
virtual void | setFilter (Filter *filter) |
virtual void | setLayout (Layout *layout)=0 |
virtual void | setLayout (Layout *layout)=0 |
virtual void | setThreshold (Priority::Value priority) |
virtual void | setThreshold (Priority::Value priority) |
virtual | ~AppenderSkeleton () |
virtual | ~AppenderSkeleton () |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event)=0 |
virtual void | _append (const LoggingEvent &event)=0 |
AppenderSkeleton (const std::string &name) | |
AppenderSkeleton (const std::string &name) | |
Private Attributes | |
Filter * | _filter |
Priority::Value | _threshold |
AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of handling of Thresholds and Filters.
Definition at line 24 of file include/log4cpp/AppenderSkeleton.hh.
log4cpp::AppenderSkeleton::AppenderSkeleton | ( | const std::string & | name | ) | [protected] |
Constructor for AppenderSkeleton. Will only be used in getAppender() (and in derived classes of course).
name | The name of this Appender. |
Definition at line 15 of file AppenderSkeleton.cpp.
log4cpp::AppenderSkeleton::~AppenderSkeleton | ( | ) | [virtual] |
Destructor for AppenderSkeleton.
Definition at line 21 of file AppenderSkeleton.cpp.
log4cpp::AppenderSkeleton::AppenderSkeleton | ( | const std::string & | name | ) | [protected] |
Constructor for AppenderSkeleton. Will only be used in getAppender() (and in derived classes of course).
name | The name of this Appender. |
virtual log4cpp::AppenderSkeleton::~AppenderSkeleton | ( | ) | [virtual] |
Destructor for AppenderSkeleton.
virtual void log4cpp::AppenderSkeleton::_append | ( | const LoggingEvent & | event | ) | [protected, pure virtual] |
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Implemented in log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::RollingFileAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::RollingFileAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
virtual void log4cpp::AppenderSkeleton::_append | ( | const LoggingEvent & | event | ) | [protected, pure virtual] |
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Implemented in log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::RollingFileAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::RollingFileAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
virtual void log4cpp::AppenderSkeleton::close | ( | ) | [pure virtual] |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4cpp::Appender.
Implemented in log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
virtual void log4cpp::AppenderSkeleton::close | ( | ) | [pure virtual] |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4cpp::Appender.
Implemented in log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, log4cpp::AbortAppender, log4cpp::BufferingAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
virtual void log4cpp::AppenderSkeleton::doAppend | ( | const LoggingEvent & | event | ) | [virtual] |
Log in Appender specific way.
event | The LoggingEvent to log. |
Implements log4cpp::Appender.
void log4cpp::AppenderSkeleton::doAppend | ( | const LoggingEvent & | event | ) | [virtual] |
Log in Appender specific way.
event | The LoggingEvent to log. |
Implements log4cpp::Appender.
Definition at line 30 of file AppenderSkeleton.cpp.
virtual Filter* log4cpp::AppenderSkeleton::getFilter | ( | ) | [virtual] |
Get the Filter for this appender.
Implements log4cpp::Appender.
Filter * log4cpp::AppenderSkeleton::getFilter | ( | ) | [virtual] |
Get the Filter for this appender.
Implements log4cpp::Appender.
Definition at line 55 of file AppenderSkeleton.cpp.
virtual Priority::Value log4cpp::AppenderSkeleton::getThreshold | ( | ) | [virtual] |
Priority::Value log4cpp::AppenderSkeleton::getThreshold | ( | ) | [virtual] |
Get the threshold priority of this Appender.
Implements log4cpp::Appender.
Definition at line 42 of file AppenderSkeleton.cpp.
virtual bool log4cpp::AppenderSkeleton::reopen | ( | ) | [virtual] |
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Implements log4cpp::Appender.
Reimplemented in log4cpp::AbortAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, log4cpp::AbortAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
bool log4cpp::AppenderSkeleton::reopen | ( | ) | [virtual] |
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Implements log4cpp::Appender.
Reimplemented in log4cpp::AbortAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, log4cpp::SyslogAppender, log4cpp::AbortAppender, log4cpp::FileAppender, log4cpp::IdsaAppender, log4cpp::OstreamAppender, log4cpp::RemoteSyslogAppender, log4cpp::StringQueueAppender, and log4cpp::SyslogAppender.
Definition at line 26 of file AppenderSkeleton.cpp.
virtual bool log4cpp::AppenderSkeleton::requiresLayout | ( | ) | const [pure virtual] |
Check if the appender uses a layout.
Implements log4cpp::Appender.
Implemented in log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, log4cpp::AbortAppender, log4cpp::IdsaAppender, and log4cpp::LayoutAppender.
virtual bool log4cpp::AppenderSkeleton::requiresLayout | ( | ) | const [pure virtual] |
Check if the appender uses a layout.
Implements log4cpp::Appender.
Implemented in log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, log4cpp::AbortAppender, log4cpp::IdsaAppender, and log4cpp::LayoutAppender.
virtual void log4cpp::AppenderSkeleton::setFilter | ( | Filter * | filter | ) | [virtual] |
Set a Filter for this appender.
Implements log4cpp::Appender.
void log4cpp::AppenderSkeleton::setFilter | ( | Filter * | filter | ) | [virtual] |
Set a Filter for this appender.
Implements log4cpp::Appender.
Definition at line 46 of file AppenderSkeleton.cpp.
virtual void log4cpp::AppenderSkeleton::setLayout | ( | Layout * | layout | ) | [pure virtual] |
Set the Layout for this appender.
layout | The layout to use. |
Implements log4cpp::Appender.
Implemented in log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, log4cpp::AbortAppender, log4cpp::IdsaAppender, and log4cpp::LayoutAppender.
virtual void log4cpp::AppenderSkeleton::setLayout | ( | Layout * | layout | ) | [pure virtual] |
Set the Layout for this appender.
layout | The layout to use. |
Implements log4cpp::Appender.
Implemented in log4cpp::AbortAppender, log4cpp::IdsaAppender, log4cpp::LayoutAppender, log4cpp::AbortAppender, log4cpp::IdsaAppender, and log4cpp::LayoutAppender.
virtual void log4cpp::AppenderSkeleton::setThreshold | ( | Priority::Value | priority | ) | [virtual] |
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.
priority | The priority to set. |
Implements log4cpp::Appender.
void log4cpp::AppenderSkeleton::setThreshold | ( | Priority::Value | priority | ) | [virtual] |
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.
priority | The priority to set. |
Implements log4cpp::Appender.
Definition at line 38 of file AppenderSkeleton.cpp.
Filter * log4cpp::AppenderSkeleton::_filter [private] |
Definition at line 107 of file include/log4cpp/AppenderSkeleton.hh.
Definition at line 106 of file include/log4cpp/AppenderSkeleton.hh.