Changeset 1549 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jan 29, 2009, 12:07:42 PM (16 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r1539 r1549  
    161161  // First time resolve the log file name
    162162  // ------------------------------------
    163   if (_logFileFlag == 0) {
     163  QDate currDate = currentDateAndTimeGPS().date();
     164  if (_logFileFlag == 0 || _fileDate != currDate) {
     165    delete _logFile;
    164166    _logFileFlag = 1;
    165167    bncSettings settings;
     
    167169    if ( !logFileName.isEmpty() ) {
    168170      expandEnvVar(logFileName);
    169       _logFile = new QFile(logFileName);
     171      _logFile = new QFile(logFileName + "_" +
     172                          currDate.toString("yyMMdd").toAscii().data());
     173      _fileDate = currDate;
    170174      if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
    171175        _logFile->open(QIODevice::WriteOnly | QIODevice::Append);
  • trunk/BNC/bncapp.h

    r1538 r1549  
    100100    QMultiMap<long, QString>* _corrs;
    101101    QString             _confFileName;
     102    QDate          _fileDate;
    102103};
    103104#endif
  • trunk/BNC/bnchelp.html

    r1546 r1549  
    199199<p><a name="genlog"><h4>3.4.1 Logfile - optional</h4></p>
    200200<p>
    201 Records of BNC's activities are shown in the 'Logs' canvas on the bottom of the main window. These logs can be saved into a file when a valid path is specified in the 'Logfile (full path)' field. The message log covers the communication status between BNC and the NTRIP broadcaster as well as problems that may occur in the communication link, stream availability, stream delay, stream conversion etc. All times are given in UTC. The default value for 'Logfile (full path)' is an empty option field, meaning that BNC logs will not saved into a file.
     201Records of BNC's activities are shown in the 'Logs' canvas on the bottom of the main window. These logs can be saved into daily logfiles when a valid path is specified in the 'Logfile (full path)' field. The logfile name will automatically be extended by a date string '_YYMMDD' carrying the current date. Message logs cover the communication status between BNC and the NTRIP broadcaster as well as problems that may occur in the communication link, stream availability, stream delay, stream conversion etc. All times are given in UTC. The default value for 'Logfile (full path)' is an empty option field, meaning that BNC logs will not saved into a file.
    202202</p>
    203203
Note: See TracChangeset for help on using the changeset viewer.