diff options
author | crupest <crupest@outlook.com> | 2022-01-28 22:32:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-28 22:32:22 +0800 |
commit | 27ef6b29fe9ea6931dd9aef585e8b9467599b5f1 (patch) | |
tree | b6c6f2162a9561e1f86568717649913999cbb3e7 /src/win/StdOutLogger.hpp | |
parent | af43f72adcb6738eebaad505389084c17411a694 (diff) | |
download | cru-27ef6b29fe9ea6931dd9aef585e8b9467599b5f1.tar.gz cru-27ef6b29fe9ea6931dd9aef585e8b9467599b5f1.tar.bz2 cru-27ef6b29fe9ea6931dd9aef585e8b9467599b5f1.zip |
...
Diffstat (limited to 'src/win/StdOutLogger.hpp')
-rw-r--r-- | src/win/StdOutLogger.hpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/win/StdOutLogger.hpp b/src/win/StdOutLogger.hpp deleted file mode 100644 index b3a22dd5..00000000 --- a/src/win/StdOutLogger.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#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, StringView s) override { - CRU_UNUSED(level) - - String m = s.ToString(); - std::fputws(reinterpret_cast<const wchar_t*>(m.c_str()), stdout); - } -}; -} // namespace cru::platform::win |