#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.
log4cpp::OstreamAppender::OstreamAppender | ( | const std::string & | name, |
std::ostream * | stream | ||
) |
Definition at line 21 of file OstreamAppender.cpp.
log4cpp::OstreamAppender::~OstreamAppender | ( | ) | [virtual] |
Definition at line 26 of file OstreamAppender.cpp.
void log4cpp::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 log4cpp::AppenderSkeleton.
Definition at line 34 of file OstreamAppender.cpp.
void log4cpp::OstreamAppender::close | ( | ) | [virtual] |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4cpp::AppenderSkeleton.
Definition at line 30 of file OstreamAppender.cpp.
bool log4cpp::OstreamAppender::reopen | ( | ) | [virtual] |
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Reimplemented from log4cpp::AppenderSkeleton.
Definition at line 41 of file OstreamAppender.cpp.
std::ostream* log4cpp::OstreamAppender::_stream [protected] |
Definition at line 34 of file OstreamAppender.hh.