Changeset 11190 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Nov 10, 2026, 9:21:30 AM (3 weeks ago)
Author:
stuerze
Message:

Structured logging improved

Location:
trunk/BNC/src
Files:
4 edited

Legend:

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

    r11187 r11190  
    840840        t_logRecord rec(t_logRecord::info, "stream", "stream_content", _staID,
    841841                        _staID + ": Received message type " + type.toLatin1() +  size.toLatin1());
    842         rec.setStructuredMsg("Received message");
     842        rec.setStructuredMsg("Received RTCM message");
    843843        rec.add("message_type", int(decoder()->_typeList[ii]._type));
    844844        if (decoder()->_typeList[ii]._size) {
  • trunk/BNC/src/bnchelp.html

    r11189 r11190  
    28182818    <li>'mp': the mountpoint of the stream or the PPP station, if known,</li>
    28192819    <li>the fields of the event,</li>
    2820     <li>'msg': the text of the record in the logfile, without the leading mountpoint ('&lt;mp&gt;: ') and shortened
    2821         for events whose fields carry the details: 'PPP position' (ppp_position), 'Received message' (message types
    2822         of the RTCM scan), 'Mean latency' (stream_latency), 'Failure threshold exceeded, outage' / 'corrupted' and
     2820    <li>'msg': the text of the record in the logfile, without the leading mountpoint ('&lt;mp&gt;: ') and trailing blanks, shortened
     2821        for events whose fields carry the details: 'PPP position' (ppp_position), 'Received RTCM message' (message types
     2822        of the RTCM scan), 'Latency' (stream_latency), 'Failure threshold exceeded, outage' / 'corrupted' and
    28232823        'Recovery threshold exceeded, outage ended' / 'corruption ended' (stream_outage_*, stream_corrupted_*),</li>
    28242824    <li>'v': the version of the record layout, currently 1.</li>
  • trunk/BNC/src/bnclog.cpp

    r11189 r11190  
    275275    msg.remove(0, _stream.size() + 2);
    276276  }
     277  // no trailing blanks (e.g. RTCM scan: "Receiver Serial Number: 1831551 ")
     278  while (msg.endsWith(' ')) {
     279    msg.chop(1);
     280  }
    277281
    278282  QVector<t_field> all;
  • trunk/BNC/src/latencychecker.cpp

    r11189 r11190  
    567567  }
    568568  t_logRecord rec(t_logRecord::info, "stream", "stream_latency", _staID, text.toLatin1());
    569   rec.setStructuredMsg("Mean latency");
     569  rec.setStructuredMsg("Latency");
    570570  rec.add("type", l._type)
    571571     .add("mean", mean, 2)
Note: See TracChangeset for help on using the changeset viewer.