diff options
Diffstat (limited to 'src/LoggerListeners.cpp')
-rw-r--r-- | src/LoggerListeners.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/LoggerListeners.cpp b/src/LoggerListeners.cpp index 77e2aaf67..6ad94b7bd 100644 --- a/src/LoggerListeners.cpp +++ b/src/LoggerListeners.cpp @@ -22,7 +22,7 @@ virtual void SetLogColour(cLogger::eLogLevel a_LogLevel) = 0; virtual void SetDefaultLogColour() = 0; - virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override + virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) /*override*/ { SetLogColour(a_LogLevel); fputs(a_Message.c_str(), stdout); @@ -48,7 +48,7 @@ } #ifdef _DEBUG - virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override + virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) /*override*/ { super::Log(a_Message, a_LogLevel); // In a Windows Debug build, output the log to debug console as well: @@ -57,7 +57,7 @@ #endif - virtual void SetLogColour(cLogger::eLogLevel a_LogLevel) override + virtual void SetLogColour(cLogger::eLogLevel a_LogLevel) /*override*/ { // by default, gray on black WORD Attrib = FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED; @@ -92,7 +92,7 @@ } - virtual void SetDefaultLogColour() override + virtual void SetDefaultLogColour() /*override*/ { SetConsoleTextAttribute(m_Console, m_DefaultConsoleAttrib); } @@ -113,7 +113,7 @@ : public cColouredConsoleListener { public: - virtual void SetLogColour(cLogger::eLogLevel a_LogLevel) override + virtual void SetLogColour(cLogger::eLogLevel a_LogLevel) /*override*/ { switch (a_LogLevel) { @@ -125,7 +125,7 @@ } case cLogger::llInfo: { - // Yellow on black + // Yellow on black printf("\x1b[33;1m"); break; } @@ -133,7 +133,7 @@ { // Red on black printf("\x1b[31;1m"); - break; + break; } case cLogger::llError: { @@ -145,9 +145,9 @@ } - virtual void SetDefaultLogColour() override + virtual void SetDefaultLogColour() /*override*/ { - // Whatever the console default is + // Whatever the console default is printf("\x1b[0m"); } }; @@ -162,7 +162,7 @@ : public cLogger::cListener { public: - virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override + virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) /*override*/ { android_LogPriority AndroidLogLevel; switch (a_LogLevel) @@ -202,7 +202,7 @@ class cVanillaCPPConsoleListener : public cLogger::cListener { public: - virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override + virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) /*override*/ { AString LogLevelString; switch (a_LogLevel) |