15 extern "C" __declspec(dllimport)
void __stdcall OutputDebugStringA(
const char *lpOutputString);
22 template<
typename Mutex>
23 class msvc_sink :
public base_sink<Mutex>
26 msvc_sink() =
default;
29 void sink_it_(
const details::log_msg &msg)
override
33 # ifdef SPDLOG_USE_STD_FORMAT
34 OutputDebugStringA(formatted.c_str());
40 void flush_()
override {}
43 using msvc_sink_mt = msvc_sink<std::mutex>;
44 using msvc_sink_st = msvc_sink<details::null_mutex>;
46 using windebug_sink_mt = msvc_sink_mt;
47 using windebug_sink_st = msvc_sink_st;