aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform/win/DebugLogTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/platform/win/DebugLogTarget.cpp')
-rw-r--r--src/base/platform/win/DebugLogTarget.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/platform/win/DebugLogTarget.cpp b/src/base/platform/win/DebugLogTarget.cpp
new file mode 100644
index 00000000..89bd3d19
--- /dev/null
+++ b/src/base/platform/win/DebugLogTarget.cpp
@@ -0,0 +1,10 @@
+#include "cru/base/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<const wchar_t*>(m.c_str()));
+}
+} // namespace cru::platform::win