aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/AppenderConsole.h
diff options
context:
space:
mode:
authorMikhail Redko <ovitnez@gmail.com>2021-04-11 20:41:44 +0300
committerShauren <shauren.trinity@gmail.com>2022-03-08 15:57:30 +0100
commitf7441f02349500b46341f76b054f5ef1eb7baa1d (patch)
tree91cfeafc858fa174203908768797c369c2c258ce /src/common/Logging/AppenderConsole.h
parent0d51e52aa608c85517035fb378500be01b0e578e (diff)
Core/Misc: Fixed utf8 encoding in console input/output. (#26352)
* Core/Misc: Fixed utf8 encoding in console input/output. * Fix gcc build * Fixed that weird 'a' with circle above it and other similar letters. Also fixed encoding in AppenderConsole which sometimes did not work as it should * Fix build on Linux * Probably better to do it like this (cherry picked from commit 1539bed3db86f2153f2d0d5fbf24bf9ee4af1d92)
Diffstat (limited to 'src/common/Logging/AppenderConsole.h')
-rw-r--r--src/common/Logging/AppenderConsole.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Logging/AppenderConsole.h b/src/common/Logging/AppenderConsole.h
index 6c6be4b6c59..19c5c211028 100644
--- a/src/common/Logging/AppenderConsole.h
+++ b/src/common/Logging/AppenderConsole.h
@@ -53,6 +53,7 @@ class TC_COMMON_API AppenderConsole : public Appender
private:
void SetColor(bool stdout_stream, ColorTypes color);
void ResetColor(bool stdout_stream);
+ void Print(std::string const& str, bool error);
void _write(LogMessage const* message) override;
bool _colored;
ColorTypes _colors[NUM_ENABLED_LOG_LEVELS];