This Appender causes the application to abort() upon the first append() call. More...
#include <AbortAppender.hh>
Public Member Functions | |
AbortAppender (const std::string &name) | |
virtual void | close () |
Release any resources allocated within the appender such as file handles, network connections, etc. | |
virtual bool | reopen () |
Reopens the output destination of this Appender, e.g. | |
virtual bool | requiresLayout () const |
The AbortAppender does not layout. | |
virtual void | setLayout (Layout *layout) |
Set the Layout for this appender. | |
virtual | ~AbortAppender () |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Log in Appender specific way. |
This Appender causes the application to abort() upon the first append() call.
Definition at line 24 of file AbortAppender.hh.
AbortAppender::AbortAppender | ( | const std::string & | name | ) |
virtual AbortAppender::~AbortAppender | ( | ) | [virtual] |
virtual void AbortAppender::_append | ( | const LoggingEvent & | event | ) | [protected, virtual] |
Log in Appender specific way.
Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Implements AppenderSkeleton.
virtual void AbortAppender::close | ( | ) | [virtual] |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements AppenderSkeleton.
virtual bool AbortAppender::reopen | ( | ) | [virtual] |
Reopens the output destination of this Appender, e.g.
the logfile or TCP socket.
Reimplemented from AppenderSkeleton.
virtual bool AbortAppender::requiresLayout | ( | ) | const [virtual] |
virtual void AbortAppender::setLayout | ( | Layout * | layout | ) | [virtual] |