From 6f398efaacd4cf733fcaedf29b648d17899071f0 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 21 Feb 2022 20:47:44 +0800 Subject: ... --- src/common/platform/win/DebugLogTarget.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/common/platform/win/DebugLogTarget.cpp (limited to 'src/common/platform/win/DebugLogTarget.cpp') diff --git a/src/common/platform/win/DebugLogTarget.cpp b/src/common/platform/win/DebugLogTarget.cpp new file mode 100644 index 00000000..92d26449 --- /dev/null +++ b/src/common/platform/win/DebugLogTarget.cpp @@ -0,0 +1,10 @@ +#include "cru/common/platform/win/DebugLogTarget.h" + +namespace cru::platform::win { +void WinDebugLogTarget::Write(::cru::log::LogLevel level, StringView s) { + CRU_UNUSED(level) + + String m = s.ToString(); + ::OutputDebugStringW(reinterpret_cast(m.c_str())); +} +} // namespace cru::platform::win -- cgit v1.2.3