/* */ #ifndef _D_SIMPLE_LOGGER_H_ #define _D_SIMPLE_LOGGER_H_ #include "Logger.h" class SimpleLogger:public Logger { private: enum LEVEL { DEBUG, INFO, ERROR}; void writeLog(int level, string msg, va_list ap, Exception* e = NULL); FILE* file; public: SimpleLogger(string filename); SimpleLogger(FILE* logfile); ~SimpleLogger(); void debug(string msg, ...); void debug(string msg, Exception* ex, ...); void info(string msg, ...); void info(string msg, Exception* ex, ...); void error(string msg, ...); void error(string msg, Exception* ex, ...); }; #endif // _D_SIMPLE_LOGGER_H_