00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __LOGPLUGIN_H
00013 #define __LOGPLUGIN_H
00014
00015 #include <string>
00016
00017 #include <Common.h>
00018 #include <Error.h>
00019 #include <Plugin.h>
00020
00021 using namespace std;
00022
00026 class LogPlugin : public Plugin
00027 {
00028 public:
00029 LogPlugin( const Config &cfg );
00030 virtual ~LogPlugin() = 0;
00031
00035 virtual bool init() = 0;
00036
00040 virtual void log( const string &msg, int level=0 ) = 0;
00041 };
00042
00043 #endif