summaryrefslogtreecommitdiffstats
path: root/source/cMCLogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cMCLogger.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/cMCLogger.cpp b/source/cMCLogger.cpp
index a084c62bf..b3f43333f 100644
--- a/source/cMCLogger.cpp
+++ b/source/cMCLogger.cpp
@@ -16,17 +16,25 @@ cMCLogger* cMCLogger::GetInstance()
return s_MCLogger;
}
+
+
+
+
cMCLogger::cMCLogger()
{
m_CriticalSection = new cCriticalSection();
- char c_Buffer[128];
- sprintf_s(c_Buffer, 128, "LOG_%d.txt", (int)time(0) );
- m_Log = new cLog(c_Buffer);
+ AString FileName;
+ Printf(FileName, "LOG_%d.txt", (int)time(0) );
+ m_Log = new cLog(FileName);
m_Log->Log("--- Started Log ---");
s_MCLogger = this;
}
+
+
+
+
cMCLogger::cMCLogger( char* a_File )
{
m_CriticalSection = new cCriticalSection();