Changeset 17342


Ignore:
Timestamp:
11/21/13 17:45:23 (11 years ago)
Author:
tbretz
Message:
Adapted to the changes in MessageImp to allow the datalogger to write the date-change in the log file as well.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r16885 r17342  
    202202    /// ofstream for the NightlyLogfile
    203203    ofstream fNightlyLogFile;
     204    /// Log stream to fNightlyLogFile
     205    MessageImp fNightlyLogImp;
    204206    /// ofstream for the Nightly report file
    205207    ofstream fNightlyReportFile;
     
    490492    if (fNightlyLogFile.is_open())
    491493    {
    492         MessageImp mimp(fNightlyLogFile);
    493         mimp.Write(time, ss.str(), qos);
     494        fNightlyLogImp.Write(time, ss.str(), qos);
    494495    }
    495496    else if (shouldBackLog)
     
    909910//
    910911DataLogger::DataLogger(ostream &out) : StateMachineDim(out, "DATA_LOGGER"),
    911                                       fFilesStats("DATA_LOGGER", *this)
     912fNightlyLogImp(fNightlyLogFile), fFilesStats("DATA_LOGGER", *this)
    912913{
    913914    shouldBackLog = true;
     
    15301531        if (fNightlyLogFile.is_open())
    15311532        {
    1532             MessageImp(fNightlyLogFile).Write(cTime, msg.str().c_str(), fQuality);
     1533            fNightlyLogImp.Write(cTime, msg.str().c_str(), fQuality);
    15331534            if (!CheckForOfstreamError(fNightlyLogFile, true))
    15341535                return;
Note: See TracChangeset for help on using the changeset viewer.