Files
wagic/JGE/src/JLogger.cpp
T
jean.chalard ef16aa45a1 J :
* Little compilation problem fix.
2010-05-04 16:18:56 +00:00

26 lines
419 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(text);
printf("\n");
#endif
}