Changeset 13296 for trunk/FACT++/src


Ignore:
Timestamp:
04/03/12 09:40:22 (12 years ago)
Author:
lyard
Message:
added datalogger prefix to datalogger log messages
File:
1 edited

Legend:

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

    r13204 r13296  
    407407int DataLogger::Write(const Time&time, const std::string& txt, int qos)
    408408{
     409    ostringstream ss;
     410    ss << "datalogger: " << txt;
    409411    if (fNightlyLogFile.is_open())
    410412    {
    411413        MessageImp mimp(fNightlyLogFile);
    412         mimp.Write(time, txt, qos);
     414        mimp.Write(time, ss.str(), qos);
    413415    }
    414416    else if (shouldBackLog)
     
    416418             ostringstream str;
    417419             MessageImp mimp(str);
    418              mimp.Write(time, txt, qos);
     420             mimp.Write(time, ss.str(), qos);
    419421             backLogBuffer.push_back(str.str());
    420422         }
    421     return StateMachineDim::Write(time, txt, qos);
     423    return StateMachineDim::Write(time, ss.str(), qos);
    422424}
    423425// --------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.