00001 #ifndef MD_LOGGER
00002 #define MD_LOGGER
00003
00004 #include "log4cpp/Category.hh"
00005 #include "log4cpp/Appender.hh"
00006 #include "log4cpp/FileAppender.hh"
00007 #include "log4cpp/Layout.hh"
00008 #include "log4cpp/BasicLayout.hh"
00009 #include "log4cpp/Priority.hh"
00010
00011 using namespace log4cpp;
00012
00013 class mdLogger {
00014 public:
00015 char *logPath;
00016
00017 mdLogger() {};
00018
00019 void init();
00020 void logN(int n, const char *format, ...);
00021
00022
00023 void logNdebug(int m, int n, const char *format, ...);
00024 void logNdev(int n, const char *format, ...);
00025
00026 ~mdLogger(){};
00027
00028 };
00029
00030 #endif