00001 #ifndef DIMAPPENDER_H_
00002 #define DIMAPPENDER_H_
00003
00004 #include <log4cpp/Portability.hh>
00005 #include <log4cpp/LayoutAppender.hh>
00006 #include <string>
00007 #include <stdarg.h>
00008 #include <dis.hxx>
00009
00010 namespace log4cpp {
00011
00012 class LOG4CPP_EXPORT DimAppender : public LayoutAppender {
00013 public:
00014
00015
00021 DimAppender(const std::string& name, const std::string& serviceName);
00022 virtual ~DimAppender();
00023
00024
00025
00028 virtual void close();
00029
00031 virtual bool reopen();
00032
00033
00034 protected:
00036 virtual void _append(const LoggingEvent& event);
00037
00041 std::string _message;
00042
00043 std::string _serviceName;
00044
00046 DimService *_dimLogChannel;
00047 };
00048
00049
00050 }
00051
00052 #endif