Index: sources/storage/Logger.cpp =================================================================== diff -u -rcc1e9d6d55c816f3fcd626dc6948cca24da283b3 -r1aa53e9869f4c27d53dd9052271ca38befbe22e9 --- sources/storage/Logger.cpp (.../Logger.cpp) (revision cc1e9d6d55c816f3fcd626dc6948cca24da283b3) +++ sources/storage/Logger.cpp (.../Logger.cpp) (revision 1aa53e9869f4c27d53dd9052271ca38befbe22e9) @@ -269,11 +269,7 @@ logPathName = _logPathNames[eLogDebug]; _logFileName = logPathName + fileName; FileHandler::write(_logFileName, mContent + "\r\n", true); - if (vLogType == eLogDebug) { -#ifdef QT_DEBUG - //mContent.prepend("\033[1;31m --- @ --- \033[0m"); - mContent.prepend(" @ "); -#endif + if (_enableConsoleOut) { qDebug().noquote() << mContent; } } @@ -421,3 +417,20 @@ } } // coco end + +/*! + * \brief Logger::enableConsoleOut + * \details Enables or Disables the console output and logs the status + * \param vEnabled - Enable console output if true + */ +void Logger::enableConsoleOut(bool vEnabled) { + // coco begin validated: This code meant to be used only for debugging and tested manually + if (_enableConsoleOut == vEnabled) return; + _enableConsoleOut = vEnabled; + if (_enableConsoleOut) { + LOG_DEBUG("Console out Logging enabled"); + } else { + LOG_DEBUG("Console out Logging disabled"); + } +} +// coco end