TdkLogger Class Reference
[The Utils Module]

Implements o logger to trace the application. More...

#include <TdkLogger.h>

Inheritance diagram for TdkLogger:

tdk::utils::TdkLogger4cpp List of all members.

Static Public Member Functions

static struct _timeb startMeasure ()
 Starts the time measure.
static time_t finishImportShapeMeasure (struct _timeb &startTime, std::string &shapeFilename, bool imported)
 Finishs the time measure and save in the log file. Use to trace a shape importation.
static time_t finishDatabaseConnectMeasure (struct _timeb &startTime, std::string &dbKey)
 Finishs the time measure and save in the log file. Use to trace a database connection.
static time_t finishMeasure (struct _timeb &startTime, std::string outMsg)
 Finishs the time measure and save in the log file.
static void writeToFile (std::string &logMsg)

Static Protected Member Functions

static time_t writeToFile (struct _timeb &startTime, struct _timeb &finishTime, std::string &logMsg)

Detailed Description

Implements o logger to trace the application.


Member Function Documentation

time_t TdkLogger::writeToFile ( struct _timeb &  startTime,
struct _timeb &  finishTime,
std::string &  logMsg 
) [static, protected]

struct _timeb TdkLogger::startMeasure (  )  [static, read]

Starts the time measure.

time_t TdkLogger::finishImportShapeMeasure ( struct _timeb &  startTime,
std::string &  shapeFilename,
bool  imported 
) [static]

Finishs the time measure and save in the log file. Use to trace a shape importation.

Parameters:
shapeFilename The shape file name.
imported If the shape was imported or not.

time_t TdkLogger::finishDatabaseConnectMeasure ( struct _timeb &  startTime,
std::string &  dbKey 
) [static]

Finishs the time measure and save in the log file. Use to trace a database connection.

time_t TdkLogger::finishMeasure ( struct _timeb &  startTime,
std::string  outMsg 
) [static]

Finishs the time measure and save in the log file.

void TdkLogger::writeToFile ( std::string &  logMsg  )  [static]


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:45 2007 for TDK by  doxygen 1.5.2