summaryrefslogtreecommitdiffstats
path: root/source/cLog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cLog.cpp')
-rw-r--r--source/cLog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/cLog.cpp b/source/cLog.cpp
index f44dedf1f..f8d1c731b 100644
--- a/source/cLog.cpp
+++ b/source/cLog.cpp
@@ -5,9 +5,10 @@
#include <fstream>
#include <ctime>
-#include <stdarg.h>
#include "cMakeDir.h"
+#include "cIsThread.h"
+
@@ -120,7 +121,11 @@ void cLog::Log(const char * a_Format, va_list argList)
#endif
AString Line;
+ #ifdef _DEBUG
+ Printf(Line, "[%04x|%02d:%02d:%02d] %s\n", cIsThread::GetCurrentID(), timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, Message.c_str());
+ #else
Printf(Line, "[%02d:%02d:%02d] %s\n", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, Message.c_str());
+ #endif
if (m_File)
{
fputs(Line.c_str(), m_File);