diff --git a/BasePlugin/LoggingInterface.hh b/BasePlugin/LoggingInterface.hh index 14e043673f379e046c82d752655f127d2ee4a7ad..09f98998fd87d93267a169eb3663726ffe17461f 100644 --- a/BasePlugin/LoggingInterface.hh +++ b/BasePlugin/LoggingInterface.hh @@ -91,11 +91,11 @@ The following code sends a log message * * Use this enum to specify the importance of log messages. */ -enum Logtype { LOGNONE , /*!< Dummy messages. These messages will not appear in the logwidget and are for testing only */ - LOGOUT , /*!< Standard log messages. Will be printed in black in the logwidget */ - LOGINFO , /*!< Info log messages. Will be printed in green in the logwidget */ - LOGWARN , /*!< Warning messages. Will be printed in yellow in the logwidget */ - LOGERR /*!< Error messages. Will be printed in red in the logwidget */ +enum Logtype { LOGSTATUS , /*!< Status log messages. Will be printed in blue in the logwidget */ + LOGOUT , /*!< Standard log messages. Will be printed in black in the logwidget */ + LOGINFO , /*!< Info log messages. Will be printed in green in the logwidget */ + LOGWARN , /*!< Warning messages. Will be printed in yellow in the logwidget */ + LOGERR /*!< Error messages. Will be printed in red in the logwidget */ }; /** \brief Interface for all Plugins which do logging to the logging window of the framework diff --git a/Core/Core.cc b/Core/Core.cc index 1320b9f2d1fa0926eb70af502a4cf16c77b2cdf7..da358fbff53fe45b23a01c575469f3dc625d525e 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -1269,6 +1269,8 @@ void Core::slotLogToFile(Logtype _type, QString _message){ (*logStream_) << "WARN:"; break; case LOGERR: (*logStream_) << "ERR :"; break; + case LOGSTATUS: + (*logStream_) << "STAT:"; break; } (*logStream_) << _message << "\n" << flush; diff --git a/Core/Logging.cc b/Core/Logging.cc index cd19b540a1c826f08707fbd3a2a228425d5b8677..7400d097c941080c970b8e696afbb4d7646c4bcc 100644 --- a/Core/Logging.cc +++ b/Core/Logging.cc @@ -108,6 +108,9 @@ slotLog(Logtype _type, QString _message) { case LOGERR: std::cerr << "\33[31m" << output << std::endl; break; + case LOGSTATUS: + std::cerr << "\33[34m" << output << std::endl; + break; } } diff --git a/widgets/coreWidget/CoreWidgetLogging.cc b/widgets/coreWidget/CoreWidgetLogging.cc index 435b6ef2660a52e84bdd733642e653af6ec74c46..c1d98b1bef93918dcfb408b16471fe69ce47d3b8 100644 --- a/widgets/coreWidget/CoreWidgetLogging.cc +++ b/widgets/coreWidget/CoreWidgetLogging.cc @@ -86,7 +86,7 @@ slotLog(Logtype _type, QString _message) { case LOGERR: textColor = QColor(250,0,0); break; - case LOGNONE: + case LOGSTATUS: textColor = QColor(0,0,250); break; } diff --git a/widgets/loggerWidget/loggerWidget.cc b/widgets/loggerWidget/loggerWidget.cc index 2d70390d136e851a31d480a20b532287c4ae6987..5f4ee642459fbeec98edffcca3d1697ccb43709a 100644 --- a/widgets/loggerWidget/loggerWidget.cc +++ b/widgets/loggerWidget/loggerWidget.cc @@ -215,6 +215,13 @@ void LoggerWidget::append(QString _text, Logtype _type){ item->setForeground( QBrush(QColor(Qt::red)) ); item->setBackground( QBrush(QColor(255,225,225),Qt::Dense4Pattern) ); + if ( errorButton_->isChecked() ) + item->setHidden(false); + break; + case LOGSTATUS: + item->setForeground( QBrush(QColor(Qt::blue)) ); + item->setBackground( QBrush(QColor(255,225,225),Qt::Dense4Pattern) ); + if ( errorButton_->isChecked() ) item->setHidden(false); break;