diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-17 12:40:14 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-17 12:40:14 +0100 |
commit | 71097aa49b7ec3fc258167e528a0c9f37f259c71 (patch) | |
tree | 1fc97c2339345a7c31184b2bda1557d10ef7830f /source/cLog.cpp | |
parent | git-svn-id: http://mc-server.googlecode.com/svn/trunk@281 0a769ca7-a7f5-676a-18bf-c427514a06d6 (diff) | |
download | cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.tar cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.tar.gz cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.tar.bz2 cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.tar.lz cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.tar.xz cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.tar.zst cuberite-71097aa49b7ec3fc258167e528a0c9f37f259c71.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cLog.cpp | 7 |
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
}
|