2007-09-19 19:50:54 UTC
previous
next
#ifndef LOG_H_
#define LOG_H_
#include <boost/thread.hpp>
#include <string>
#include <fstream>
class log
{
public:
static void info(std::string message);
static void error(std::string message);
static void debug(std::string message);
static void init();
static void close();
private:
static std::ofstream _log_file;
static boost::mutex _mutex;
};
#endif /*LOG_H_*/