Files
wagic/JGE/src/JLogger.cpp
jean.chalard f14f56b9ce J :
* Fix 64-bit compilation
2010-06-13 09:38:58 +00:00

26 lines
425 B
C++

#include "../include/JLogger.h"
#include <iostream>
#include <fstream>
using namespace std;
#if defined (WIN32)
#include <windows.h>
#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
}