From 71097aa49b7ec3fc258167e528a0c9f37f259c71 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 17 Feb 2012 11:40:14 +0000 Subject: Lots of logging added git-svn-id: http://mc-server.googlecode.com/svn/trunk@282 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cLog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/cLog.cpp') 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 } -- cgit v1.2.3