log4cpp::DimAppender Class Reference

#include <DimAppender.h>

List of all members.

Public Member Functions

 DimAppender (const std::string &name, const std::string &serviceName)
 Constructs a DimAppender.
virtual ~DimAppender ()
virtual void close ()
 Frees the resources connected (DimServices) to this DimAppender Deletes the internal dim service.
virtual bool reopen ()
 Re opens the dim comunication.

Protected Member Functions

virtual void _append (const LoggingEvent &event)
 This is the method actually used to apped a log message.

Protected Attributes

std::string _message
 internal variable used to keep the last message in memory the dim sometimes uses this memory and I am afraid of deleting it after the end of the scope of the _apped method, so I keep this string always in memory so to avoid problems
std::string _serviceName
DimService * _dimLogChannel
 The dim service object that will be use to send the logging information.


Detailed Description

Definition at line 12 of file DimAppender.h.


Constructor & Destructor Documentation

log4cpp::DimAppender::DimAppender ( const std::string &  name,
const std::string &  serviceName 
)

Constructs a DimAppender.

Parameters:
name the name of the Appender.
the service name that will be used to log

Definition at line 23 of file DimAppender.cpp.

References _dimLogChannel, and _serviceName.

log4cpp::DimAppender::~DimAppender (  )  [virtual]

Definition at line 30 of file DimAppender.cpp.

References close().


Member Function Documentation

void log4cpp::DimAppender::close (  )  [virtual]

Frees the resources connected (DimServices) to this DimAppender Deletes the internal dim service.

Definition at line 49 of file DimAppender.cpp.

References _dimLogChannel.

Referenced by ~DimAppender().

bool log4cpp::DimAppender::reopen (  )  [virtual]

Re opens the dim comunication.

Definition at line 59 of file DimAppender.cpp.

References _dimLogChannel, and _serviceName.

void log4cpp::DimAppender::_append ( const LoggingEvent &  event  )  [protected, virtual]

This is the method actually used to apped a log message.

Definition at line 36 of file DimAppender.cpp.

References _dimLogChannel, and _message.


Member Data Documentation

std::string log4cpp::DimAppender::_message [protected]

internal variable used to keep the last message in memory the dim sometimes uses this memory and I am afraid of deleting it after the end of the scope of the _apped method, so I keep this string always in memory so to avoid problems

Definition at line 41 of file DimAppender.h.

Referenced by _append().

std::string log4cpp::DimAppender::_serviceName [protected]

Definition at line 43 of file DimAppender.h.

Referenced by DimAppender(), and reopen().

DimService* log4cpp::DimAppender::_dimLogChannel [protected]

The dim service object that will be use to send the logging information.

Definition at line 46 of file DimAppender.h.

Referenced by _append(), close(), DimAppender(), and reopen().


The documentation for this class was generated from the following files:
Generated on Sat Mar 29 22:55:56 2008 for pixelTrigger by  doxygen 1.5.0