Unuk/trunk/Unuk/src/libUnuk/Debug.h
2011-10-13 01:07:38 +01:00

24 lines
392 B
C++

#ifndef _DEBUG_H_
#define _DEBUG_H_
#include <fstream>
#include "string"
class Debug {
public:
Debug(bool logToFile);
~Debug(void);
// Log an error message.
void message(std::string msg);
void message(const char *msg, ...);
static bool openLog(bool logToFile);
static void closeLog(void);
static Debug *logger;
private:
std::ofstream logFile;
};
#endif // _DEBUG_H_