00001
00002
00003
00004
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
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);
00031 void warning(string message);
00032 void debug(string message);
00033
00034 };
00035
00036 #endif // __LOGGER_H