24 lines
425 B
C++
24 lines
425 B
C++
#include "../include/config.h"
|
|
#include "../include/Logger.h"
|
|
#include <iostream>
|
|
#include <fstream>
|
|
using namespace std;
|
|
|
|
#if defined (WIN32)
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
void Logger::Log(const char * text){
|
|
ofstream file (LOG_FILE,ios_base::app);
|
|
if (file){
|
|
file << text;
|
|
file << "\n";
|
|
file.close();
|
|
}
|
|
#if defined (WIN32) || defined (LINUX)
|
|
OutputDebugString(text);
|
|
OutputDebugString("\n");
|
|
#endif
|
|
|
|
}
|