Log to Output Window when Visual Studio attached

This commit is contained in:
Vinnie Falco
2013-07-29 11:51:30 -07:00
parent 9c3f13d66c
commit bf9806b07f

View File

@@ -145,7 +145,20 @@ public:
{
if (m_shouldLog)
{
#if BEAST_MSVC
if (beast_isRunningUnderDebugger ())
{
Logger::outputDebugString (message);
}
else
{
std::cout << message.toStdString () << std::endl;
}
#else
std::cout << message.toStdString () << std::endl;
#endif
}
}