#include <string>
Go to the source code of this file.
Functions | |
Logging to a text file | |
void | textLog (const std::string &fname, const std::string &event, const std::string &details) |
Log a message to a textlog file. | |
void | textLog (const std::string &fname, const std::string &event, const std::string &details, const SimTime &t) |
Like before, but give a specific timestamp. | |
void | setLogTime (const std::string &fname, const SimTime &t) |
Specify the timestamp to be used for subsequent logfile entries. |
Functions for logging model/simulation events
Definition in file TextLog.H.
void setLogTime | ( | const std::string & | fname, | |
const SimTime & | t | |||
) |
Specify the timestamp to be used for subsequent logfile entries.
Definition at line 171 of file TextLog.C.
Referenced by SimEventQueue::evolve().
void textLog | ( | const std::string & | fname, | |
const std::string & | event, | |||
const std::string & | details, | |||
const SimTime & | t | |||
) |
void textLog | ( | const std::string & | fname, | |
const std::string & | event, | |||
const std::string & | details | |||
) |
Log a message to a textlog file.
This version is for C++ formatted message. If the option was not specified in the command line, this is a no-op. To get a std::string from printf-style formatting, use sformat() from "Util/sformat.H".
event | short one-word name for event that triggered log entry | |
details | additional details about the event |
Definition at line 152 of file TextLog.C.
Referenced by SpatialMetrics::paramChanged(), RasterInputSeries::readFrame(), OutputFrameSeries::update(), RasterOutputSeries::writeFrame(), OutputMbariFrameSeries::writeMbariFloat(), OutputMbariFrameSeries::writeMbariGray(), and OutputMbariFrameSeries::writeMbariRGB().