aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/logger.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/logger.hpp')
-rw-r--r--include/cru/common/logger.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/common/logger.hpp b/include/cru/common/logger.hpp
index 08765499..61d97422 100644
--- a/include/cru/common/logger.hpp
+++ b/include/cru/common/logger.hpp
@@ -28,6 +28,11 @@ class StdioLogSource : public virtual ILogSource {
~StdioLogSource() override = default;
void Write(LogLevel level, const std::string_view& s) override {
+ // TODO: Emmm... Since it is buggy to use narrow char in UTF-8 on Windows. I
+ // think this implementation might be broken. (However, I didn't test it.)
+ // Maybe, I should detect Windows and use wide char (And I didn't test this
+ // either) or other more complicated implementation. Currently, I settled
+ // with this.
if (level == LogLevel::Error) {
std::cerr << s;
} else {