00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _LOG4CPP_IDSAAPPENDER_HH
00010 #define _LOG4CPP_IDSAAPPENDER_HH
00011
00012 #include <string>
00013 #include <stdarg.h>
00014 #include <idsa.h>
00015 #include "log4cpp/AppenderSkeleton.hh"
00016
00017 namespace log4cpp {
00018
00024 class IdsaAppender : public AppenderSkeleton {
00025 public:
00026
00033 IdsaAppender(const std::string& name, const std::string& idsaName);
00034 virtual ~IdsaAppender();
00035
00039 virtual bool reopen();
00040
00044 virtual void close();
00045
00050 virtual bool requiresLayout() const;
00051
00052 virtual void setLayout(Layout* layout);
00053
00054 protected:
00055
00059 virtual void open();
00060
00065 virtual void _append(const LoggingEvent& event);
00066
00067 const std::string _idsaName;
00068
00069 IDSA_CONNECTION *_idsaConnection;
00070
00071 };
00072 }
00073
00074 #endif // _LOG4CPP_IDSAAPPENDER_HH
00075