message: Add timestamps to log and console
diff: @@ -212,24 +212,30 @@ void segsLogMessageOutput(QtMsgType type, const QMessageLogContext &context, con
  fprintf(stderr,"Failed to open log file in write mode, will procede with console only logging");
  }
  QByteArray localMsg = msg.toLocal8Bit();
  + std::string timestamp = QTime::currentTime().toString("hh:mm:ss").toStdString();
  switch (type)
  {
  case QtDebugMsg:
  - snprintf(log_buffer,sizeof(log_buffer),"%sDebug : %s\n",category_text,localMsg.constData());
  + snprintf(log_buffer,sizeof(log_buffer),"[%s] %sDebug : %s\n",
  + timestamp.c_str(), category_text, localMsg.constData());
  break;
  case QtInfoMsg:
  // no prefix or category for informational messages, as these are end-user facing
  - snprintf(log_buffer,sizeof(log_buffer),"%s\n",localMsg.constData());
  + snprintf(log_buffer,sizeof(log_buffer),"[%s] %s\n",
  + timestamp.c_str(), localMsg.constData());
  break;
  case QtWarningMsg:
  - snprintf(log_buffer,sizeof(log_buffer),"%sWarning : %s\n",category_text,localMsg.constData());
  + snprintf(log_buffer,sizeof(log_buffer),"[%s] %sWarning : %s\n",
  + timestamp.c_str(), category_text, localMsg.constData());
  break;
  case QtCriticalMsg:
  - snprintf(log_buffer,sizeof(log_buffer),"%sCritical: %s\n",category_text,localMsg.constData());
  + snprintf(log_buffer,sizeof(log_buffer),"[%s] %sCritical: %s\n",
  + timestamp.c_str(), category_text, localMsg.constData());
  break;
  case QtFatalMsg:
  - snprintf(log_buffer,sizeof(log_buffer),"%sFatal: %s\n",category_text,localMsg.constData());
  + snprintf(log_buffer,sizeof(log_buffer),"[%s] %sFatal: %s\n",
  + timestamp.c_str(), category_text, localMsg.constData());
  }
  fprintf(stdout, "%s", log_buffer);
  fflush(stdout);
  