#include <DimAppender.h>
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. |
Definition at line 12 of file DimAppender.h.
log4cpp::DimAppender::DimAppender | ( | const std::string & | name, | |
const std::string & | serviceName | |||
) |
Constructs a DimAppender.
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] |
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.
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] |
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().