#include "../include/JLogger.h" #include #include using namespace std; #if defined (WIN32) #include #endif void JLogger::Log(const char * text){ ofstream file (JGE_LOG_FILE,ios_base::app); if (file){ file << text; file << "\n"; file.close(); } #if defined (WIN32) OutputDebugString(text); OutputDebugString("\n"); #else printf("%s", text); printf("\n"); #endif }