diff options
Diffstat (limited to 'src/utils/logger.cpp')
-rw-r--r-- | src/utils/logger.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/utils/logger.cpp b/src/utils/logger.cpp index 8a070570..50b0d4c2 100644 --- a/src/utils/logger.cpp +++ b/src/utils/logger.cpp @@ -138,23 +138,23 @@ void Logger::setLogFile(const std::string &logFile, bool append) void Logger::output(const std::string &msg, Level atVerbosity) { - static const char *prefixes[] = - { -#ifdef T_COL_LOG - "[\033[45mFTL\033[0m]", - "[\033[41mERR\033[0m]", - "[\033[43mWRN\033[0m]", -#else - "[FTL]", - "[ERR]", - "[WRN]", -#endif - "[INF]", - "[DBG]" - }; - if (mVerbosity >= atVerbosity) { + static const char *prefixes[] = + { + #ifdef T_COL_LOG + "[\033[45mFTL\033[0m]", + "[\033[41mERR\033[0m]", + "[\033[43mWRN\033[0m]", + #else + "[FTL]", + "[ERR]", + "[WRN]", + #endif + "[INF]", + "[DBG]" + }; + bool open = mLogFile.is_open(); if (open) |