From b238bf95127e9f70cc2bdadac811a0cbfa163c3c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 17 Jul 2018 20:09:05 +0300 Subject: [PATCH] fix issue #755 --- include/spdlog/sinks/msvc_sink.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); }