-missing files (JLogger)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-04-26 22:47:46 +00:00
parent a3cbbedd3c
commit b0e92d68a8
2 changed files with 44 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#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) || defined (LINUX)
OutputDebugString(text);
OutputDebugString("\n");
#else
printf(text);
printf("\n");
#endif
}