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

SysLogPlugin.h

00001 /*
00002    Copyright (C) 2002 the Strongroom project
00003                                                                                 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008                                                                                 
00009    @author Wouter de Vries
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

Generated on Wed Feb 18 13:45:56 2004 for strongroom by doxygen1.2.18