00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 #ifndef __LOGSYSPLUGIN_H
00013 #define __LOGSYSPLUGIN_H
00014 
00015 #include <LogPlugin.h>
00016 
00017 #include <syslog.h>
00018 #include <string>
00019 
00020 using namespace std;
00021 
00025 class SysLogPlugin : public LogPlugin
00026 {
00027 public:
00028     SysLogPlugin( const Config &cfg );
00029     ~SysLogPlugin();
00030 
00034     bool init();
00035 
00039     void log( const string &msg, int level=0 );
00040 
00041 private:
00042     int ignoreLevel;
00043 };
00044 
00045 #endif