src/logger.h

Go to the documentation of this file.
00001 // Copyright (c) 2003 - 2004 Anselm R. Garbe <anselmg at t-online.de>
00002 // See ../LICENSE.txt for license details.
00003 //
00004 // $Id: logger.h 7 2007-05-24 11:03:53Z eg1981 $
00005 
00006 #ifndef __LOGGER_H
00007 #define __LOGGER_H
00008 
00009 #include <fstream>
00010 #include <string>
00011 
00012 #include "singleton.h"
00013 #include "ncwm.h"
00014 
00015 // forward declaration
00016 class Logger;
00017 
00021 class Logger : public Singleton<Logger>
00022 {
00023 
00024 public:
00025 
00026     Logger();
00027     ~Logger();
00028 
00030     void error(string message, bool fatal = false); // will be logged always
00031     void warning(string message);
00032     void debug(string message);
00033 
00034 };
00035 
00036 #endif // __LOGGER_H

Generated on Thu May 24 15:19:32 2007 for ncwm by  doxygen 1.5.1