Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

IdsaAppender.hh

Go to the documentation of this file.
00001 /*
00002  * IdsaAppender.hh
00003  *
00004  * Copyright 2000, Marc Welz
00005  *
00006  * See the COPYING file for the terms of usage and distribution.
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 

Generated on Fri May 9 10:39:35 2003 for log4cpp by doxygen1.2.18