Public Member Functions | Protected Member Functions | Protected Attributes
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 ()
 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

log4cpp::OstreamAppender::OstreamAppender ( const std::string &  name,
std::ostream *  stream 
)

Definition at line 21 of file OstreamAppender.cpp.

Definition at line 26 of file OstreamAppender.cpp.


Member Function Documentation

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

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 41 of file OstreamAppender.cpp.


Member Data Documentation

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

Definition at line 34 of file OstreamAppender.hh.


The documentation for this class was generated from the following files:


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sat Jun 8 2019 18:45:47