blob: 3b73b3321d9d76cc92c0288fa766cbaf4a4dd46f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "cru/base/platform/win/DebugLogTarget.h"
#include "cru/base/StringUtil.h"
namespace cru::platform::win {
void WinDebugLogTarget::Write(::cru::log::LogLevel level, std::string s) {
CRU_UNUSED(level)
std::wstring m = string::ToUtf16(s);
::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str()));
}
} // namespace cru::platform::win
|