#include <OstreamAppender.hh>
Public Member Functions | |
virtual void | close () |
virtual void | close () |
OstreamAppender (const std::string &name, std::ostream *stream) | |
OstreamAppender (const std::string &name, std::ostream *stream) | |
virtual bool | reopen () |
virtual bool | reopen () |
virtual | ~OstreamAppender () |
virtual | ~OstreamAppender () |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
virtual void | _append (const LoggingEvent &event) |
Protected Attributes | |
std::ostream * | _stream |
OstreamAppender appends LoggingEvents to ostreams.
Definition at line 23 of file include/log4cpp/OstreamAppender.hh.
log4cpp::OstreamAppender::OstreamAppender | ( | const std::string & | name, | |
std::ostream * | stream | |||
) |
Definition at line 20 of file OstreamAppender.cpp.
log4cpp::OstreamAppender::~OstreamAppender | ( | ) | [virtual] |
Definition at line 25 of file OstreamAppender.cpp.
log4cpp::OstreamAppender::OstreamAppender | ( | const std::string & | name, | |
std::ostream * | stream | |||
) |
virtual log4cpp::OstreamAppender::~OstreamAppender | ( | ) | [virtual] |
virtual 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.
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 33 of file OstreamAppender.cpp.
virtual void log4cpp::OstreamAppender::close | ( | ) | [virtual] |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4cpp::AppenderSkeleton.
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 29 of file OstreamAppender.cpp.
virtual bool log4cpp::OstreamAppender::reopen | ( | ) | [virtual] |
Reopens the output destination of this Appender, e.g. the logfile or TCP socket.
Reimplemented from log4cpp::AppenderSkeleton.
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 40 of file OstreamAppender.cpp.
std::ostream * log4cpp::OstreamAppender::_stream [protected] |
Definition at line 34 of file include/log4cpp/OstreamAppender.hh.