#include #include #include #include "LoggerT.h" using namespace std; void LoggerT::EnableLogging(bool enable){ loggingEnabled = enable; } bool LoggerT::IsLoggingEnabled(void){ return loggingEnabled; } void LoggerT::Log(std::string message){ static ofstream logFile(DEBUG_FILENAME); if (loggingEnabled) { if (not logFile) { cerr << "Unable to open the debugging file" << endl; return; } logFile << message << endl; } return; }