aboutsummaryrefslogtreecommitdiff
path: root/src/win/debug_logger.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-12 19:53:17 +0800
committercrupest <crupest@outlook.com>2019-12-12 19:53:17 +0800
commite69911a8b161b81ce3f7b209175766da2b7b3d4b (patch)
tree76b1f4b6f9f5ad6111578771be783ee456aeb912 /src/win/debug_logger.hpp
parent154b5b838edfdcef93cd0a33c013ad7f5f9d7337 (diff)
downloadcru-e69911a8b161b81ce3f7b209175766da2b7b3d4b.tar.gz
cru-e69911a8b161b81ce3f7b209175766da2b7b3d4b.tar.bz2
cru-e69911a8b161b81ce3f7b209175766da2b7b3d4b.zip
...
Diffstat (limited to 'src/win/debug_logger.hpp')
-rw-r--r--src/win/debug_logger.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win/debug_logger.hpp b/src/win/debug_logger.hpp
index ab6a2266..53c4859b 100644
--- a/src/win/debug_logger.hpp
+++ b/src/win/debug_logger.hpp
@@ -4,7 +4,7 @@
namespace cru::platform::win {
-class WinDebugLoggerSource : public ::cru::log::ILoggerSource {
+class WinDebugLoggerSource : public ::cru::log::ILogSource {
public:
WinDebugLoggerSource() = default;
@@ -13,8 +13,8 @@ class WinDebugLoggerSource : public ::cru::log::ILoggerSource {
~WinDebugLoggerSource() = default;
- void Write(::cru::log::LogLevel level, const std::wstring_view& s) override {
- ::OutputDebugStringW(s.data());
+ void Write(::cru::log::LogLevel level, const std::string_view& s) override {
+ ::OutputDebugStringA(s.data());
}
};
} // namespace cru::platform::win