mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Log to Output Window when Visual Studio attached
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user