blob: bff8b30e5b917b1d9c553a299e15a834d2b218f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "cru/common/Base.hpp"
#include "cru/win/WinPreConfig.hpp"
#include "cru/common/Logger.hpp"
#include <cwchar>
namespace cru::platform::win {
class WinStdOutLoggerSource : public ::cru::log::ILogSource {
public:
WinStdOutLoggerSource() = default;
CRU_DELETE_COPY(WinStdOutLoggerSource)
CRU_DELETE_MOVE(WinStdOutLoggerSource)
~WinStdOutLoggerSource() = default;
void Write(::cru::log::LogLevel level, const std::u16string& s) override {
CRU_UNUSED(level)
std::fputws(reinterpret_cast<const wchar_t*>(s.c_str()), stdout);
}
};
} // namespace cru::platform::win
|