diff --git a/modules/ripple_app/main/ripple_Main.cpp b/modules/ripple_app/main/ripple_Main.cpp index 0753e05de..12ca64581 100644 --- a/modules/ripple_app/main/ripple_Main.cpp +++ b/modules/ripple_app/main/ripple_Main.cpp @@ -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 } }