Public Member Functions | Protected Member Functions | Protected Attributes
OstreamAppender Class Reference

#include <OstreamAppender.hh>

Inheritance diagram for OstreamAppender:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void close ()
 OstreamAppender (const std::string &name, std::ostream *stream)
virtual bool reopen ()
virtual ~OstreamAppender ()

Protected Member Functions

virtual void _append (const LoggingEvent &event)

Protected Attributes

std::ostream * _stream

Detailed Description

OstreamAppender appends LoggingEvents to ostreams.

Definition at line 23 of file OstreamAppender.hh.


Constructor & Destructor Documentation

OstreamAppender::OstreamAppender ( const std::string &  name,
std::ostream *  stream 
)
virtual OstreamAppender::~OstreamAppender ( ) [virtual]

Member Function Documentation

virtual void OstreamAppender::_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 OstreamAppender::close ( ) [virtual]

Release any resources allocated within the appender such as file handles, network connections, etc.

Implements AppenderSkeleton.

virtual bool OstreamAppender::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.


Member Data Documentation

std::ostream* OstreamAppender::_stream [protected]

Definition at line 34 of file OstreamAppender.hh.


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:10