diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-01 14:43:47 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-01 14:43:47 +0100 |
commit | 2568bad3cc1ae70350f5ad31e97b4c13194e437e (patch) | |
tree | 31d0713dfe1b4e42c1f17ddae8ea0114c420fc61 /source/cMCLogger.cpp | |
parent | Removed a few duplicate includes (diff) | |
download | cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.tar cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.tar.gz cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.tar.bz2 cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.tar.lz cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.tar.xz cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.tar.zst cuberite-2568bad3cc1ae70350f5ad31e97b4c13194e437e.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cMCLogger.cpp | 14 |
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();
|