log4cpp::OstreamAppender Class Reference

#include <OstreamAppender.hh>

Inheritance diagram for log4cpp::OstreamAppender:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

OstreamAppender appends LoggingEvents to ostreams.

Definition at line 23 of file include/log4cpp/OstreamAppender.hh.


Constructor & Destructor Documentation

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]

Member Function Documentation

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.

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

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

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

Reimplemented from log4cpp::AppenderSkeleton.

bool log4cpp::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 log4cpp::AppenderSkeleton.

Definition at line 40 of file OstreamAppender.cpp.


Member Data Documentation

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

Definition at line 34 of file include/log4cpp/OstreamAppender.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Jan 11 09:51:55 2013