diff options
author | crupest <crupest@outlook.com> | 2019-12-12 23:26:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-12-12 23:26:04 +0800 |
commit | f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (patch) | |
tree | b045d35bb2cf7281ab69abbd51302c85ea9ec3ef /include/cru/common/logger.hpp | |
parent | 02f46ada9ef85165759f5e58d665510077149ef3 (diff) | |
download | cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.tar.gz cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.tar.bz2 cru-f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0.zip |
...
Diffstat (limited to 'include/cru/common/logger.hpp')
-rw-r--r-- | include/cru/common/logger.hpp | 5 |
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 { |