BLOCXX_NAMESPACE::CerrLogger Class Reference

The CerrLogger is a Logger derivative that sends log message to stderr. More...

#include <CerrLogger.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::CerrLogger:

BLOCXX_NAMESPACE::Logger BLOCXX_NAMESPACE::IntrusiveCountableBase

List of all members.

Public Member Functions

 CerrLogger ()
virtual void doProcessLogMessage (const LogMessage &) const
 Output the message.
virtual LoggerRef doClone () const
 Make a copy of the derived instance.


Detailed Description

The CerrLogger is a Logger derivative that sends log message to stderr.

Definition at line 51 of file CerrLogger.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::CerrLogger::CerrLogger (  ) 

Definition at line 49 of file CerrLogger.cpp.

Referenced by doClone().


Member Function Documentation

void BLOCXX_NAMESPACE::CerrLogger::doProcessLogMessage ( const LogMessage message  )  const [virtual]

Output the message.

Calls will not be serialized, so the derived class' implementation must be thread safe.

Implements BLOCXX_NAMESPACE::Logger.

Definition at line 61 of file CerrLogger.cpp.

References BLOCXX_NAMESPACE::guard, and BLOCXX_NAMESPACE::LogMessage::message.

LoggerRef BLOCXX_NAMESPACE::CerrLogger::doClone (  )  const [virtual]

Make a copy of the derived instance.

Provided the derived class has a suitable copy constructor, an implementation of clone should simply be: LoggerRef DerivedLogger::doClone() const { return LoggerRef(new DerivedLogger(*this)); }

Implements BLOCXX_NAMESPACE::Logger.

Definition at line 69 of file CerrLogger.cpp.

References CerrLogger().


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 23:42:35 2007 for blocxx by  doxygen 1.5.3