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

LogPlugin.h

00001 /*
00002    Copyright (C) 2002 - 2003 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 __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

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