Public Member Functions | Protected Member Functions
AbortAppender Class Reference

#include <AbortAppender.hh>

Inheritance diagram for AbortAppender:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AbortAppender (const std::string &name)
virtual void close ()
virtual bool reopen ()
virtual bool requiresLayout () const
virtual void setLayout (Layout *layout)
virtual ~AbortAppender ()

Protected Member Functions

virtual void _append (const LoggingEvent &event)

Detailed Description

This Appender causes the application to abort() upon the first append() call.

Since:
0.3.5

Definition at line 24 of file AbortAppender.hh.


Constructor & Destructor Documentation

AbortAppender::AbortAppender ( const std::string &  name)
virtual AbortAppender::~AbortAppender ( ) [virtual]

Member Function Documentation

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.

Parameters:
eventThe 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.

Returns:
false if an error occured during reopening, true otherwise.

Reimplemented from AppenderSkeleton.

virtual bool AbortAppender::requiresLayout ( ) const [virtual]

The AbortAppender does not layout.

Returns:
false

Implements AppenderSkeleton.

virtual void AbortAppender::setLayout ( Layout layout) [virtual]

Set the Layout for this appender.

Parameters:
layoutThe layout to use.

Implements AppenderSkeleton.


The documentation for this class was generated from the following file:


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09