DimAppender.h

Go to the documentation of this file.
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>                      //dim server stuff 
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                         //** The internal property to store the dimService name, its used in the re opening of the resources**/
00043                 std::string _serviceName;
00044                 
00046                 DimService *_dimLogChannel;
00047     };
00048     
00049     
00050 }
00051 
00052 #endif /*DIMAPPENDER_H_*/

Generated on Sat Mar 29 22:55:54 2008 for pixelTrigger by  doxygen 1.5.0