summaryrefslogtreecommitdiffstats
path: root/source/cLog.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cLog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/cLog.cpp b/source/cLog.cpp
index 5a93ddd0f..f44dedf1f 100644
--- a/source/cLog.cpp
+++ b/source/cLog.cpp
@@ -127,8 +127,13 @@ void cLog::Log(const char * a_Format, va_list argList)
fflush(m_File);
}
-
+ // Print to console:
printf("%s", Line.c_str());
+
+ #if defined (_WIN32) && defined(_DEBUG)
+ // In a Windows Debug build, output the log to debug console as well:
+ OutputDebugString(Line.c_str());
+ #endif // _WIN32
}