diff --git a/include/spdlog/sinks/msvc_sink.h b/include/spdlog/sinks/msvc_sink.h index 068d67e9..78a5d6f2 100644 --- a/include/spdlog/sinks/msvc_sink.h +++ b/include/spdlog/sinks/msvc_sink.h @@ -27,8 +27,11 @@ public: explicit msvc_sink() {} protected: - void sink_it_(const details::log_msg &, const fmt::memory_buffer &formatted) override + void sink_it_(const details::log_msg &msg) override { + + fmt::memory_buffer formatted; + sink::formatter_->format(msg, formatted); OutputDebugStringA(fmt::to_string(formatted).c_str()); }