#include "WinDbgLogSink.hpp" #include #define WIN32_MEAN_AND_LEAN #include using namespace std; void WinDbgLogSink::log( const LogLevel level, const string &msg ) { if( level > reportingLevel( ) ) return; ostringstream ss; ss << Logger::toString( level ) << ": " << msg << "\r\n"; OutputDebugString( ss.str( ).c_str( ) ); }