Changeset 11185 in ntrip for trunk/BNC/src/ssrQc.cpp


Ignore:
Timestamp:
Nov 9, 2026, 12:15:48 PM (12 hours ago)
Author:
stuerze
Message:

Structured logging improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ssrQc.cpp

    r11148 r11185  
    145145  }
    146146
    147   connect(this, SIGNAL(newMessage(QByteArray,bool)), BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));
     147  BNC_CORE->connectMessages(this, "ssrqc");
     148  BNC_CORE->connectLogRecords(this, "ssrqc");
    148149  for (const QString& err : t_ssrRefSig::init()) {
    149     emit newMessage(("SSR QC: " + err).toLatin1(), true);
     150    emit newLogRecord(t_logRecord::message(t_logRecord::warning, ("SSR QC: " + err).toLatin1()), true);
    150151  }
    151152  // reference code biases from a Bias SINEX file (optional)
    … …  
    160161    }
    161162    else {
    162       emit newMessage(("SSR QC: wrong Bias SINEX file " + bsxFile).toLatin1(), true);
     163      emit newLogRecord(t_logRecord::message(t_logRecord::warning, ("SSR QC: wrong Bias SINEX file " + bsxFile).toLatin1()), true);
    163164      delete _bsxRef;
    164165      _bsxRef = 0;
    … …  
    171172    _antex = new bncAntex();
    172173    if (_antex->readFile(antexFile) != success || _antex->numSatPrns() == 0) {
    173       emit newMessage(("SSR QC: wrong ANTEX file " + antexFile + " - no attitude check").toLatin1(), true);
     174      emit newLogRecord(t_logRecord::message(t_logRecord::warning, ("SSR QC: wrong ANTEX file " + antexFile + " - no attitude check").toLatin1()), true);
    174175      delete _antex;
    175176      _antex = 0;
    … …  
    17581759  }
    17591760
    1760   emit newMessage(QString("SSR QC: report %1 %2 of %3 stream(s) written to %4")
     1761  emit newLogRecord(t_logRecord::message(t_logRecord::info, QString("SSR QC: report %1 %2 of %3 stream(s) written to %4")
    17611762                  .arg(QString::fromStdString(_intervalStart.datestr()))
    17621763                  .arg(QString::fromStdString(_intervalStart.timestr(0)))
    1763                   .arg(streams.size()).arg(_dirName).toLatin1(), false);
     1764                  .arg(streams.size()).arg(_dirName).toLatin1()), false);
    17641765
    17651766  _cmpStat.clear();
Note: See TracChangeset for help on using the changeset viewer.