#include <OstreamAppender.hh>
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 |
OstreamAppender appends LoggingEvents to ostreams.
Definition at line 23 of file OstreamAppender.hh.
OstreamAppender::OstreamAppender | ( | const std::string & | name, |
std::ostream * | stream | ||
) |
virtual OstreamAppender::~OstreamAppender | ( | ) | [virtual] |
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.
event | The 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.
Reimplemented from AppenderSkeleton.
std::ostream* OstreamAppender::_stream [protected] |
Definition at line 34 of file OstreamAppender.hh.