Logging to debugger is useful only on Windows.

This commit is contained in:
Alex Dupre
2013-07-03 10:02:58 +02:00
committed by Vinnie Falco
parent 8d4d5038aa
commit cc651c15b5

View File

@@ -155,6 +155,7 @@ void Log::print (std::string const& text, bool toStdErr)
if (toStdErr)
{
#if BEAST_MSVC
if (beast_isRunningUnderDebugger ())
{
// Send it to the attached debugger's Output window
@@ -162,6 +163,7 @@ void Log::print (std::string const& text, bool toStdErr)
Logger::outputDebugString (text);
}
else
#endif
{
std::cerr << text << std::endl;
}