summaryrefslogtreecommitdiffstats
path: root/src/utils/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/logger.cpp')
-rw-r--r--src/utils/logger.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/utils/logger.cpp b/src/utils/logger.cpp
index 8a07057..50b0d4c 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)