TextLog.C File Reference

#include "Util/TextLog.H"
#include "Util/Assert.H"
#include "Util/SimTime.H"
#include "Util/log.H"
#include "Util/sformat.H"
#include "rutz/mutex.h"
#include <fstream>
#include <map>
Include dependency graph for TextLog.C:

Go to the source code of this file.

Functions

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.

Detailed Description

Functions for logging model/simulation events

Definition in file TextLog.C.


Function Documentation

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 
)

Like before, but give a specific timestamp.

Definition at line 161 of file TextLog.C.

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".

Parameters:
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().

Generated on Sun May 8 08:19:24 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3