#ifndef _JLOGGER_H_ #define _JLOGGER_H_ //logging facility //#define DOLOG #include //The PSP one is to log stuff in JLogger's lastLog, it does not do full log in a text file unless DOLOG is defined #if defined(DOLOG) || defined (PSP) #define LOG(x) JLogger::Log(x); #else #define LOG(x) {}; #endif // saving myself the pain of search/replace #define JLOG(x) LOG(x) #define LOG_FILE "debug.txt" class JLogger{ public: static void Log(const char * text); static void Log(std::string text); JLogger(const char* text); ~JLogger(); const char* mText; static std::string lastLog; static int lastTime; }; #endif