Play-/Source/Log.h
2013-09-22 05:37:48 +00:00

28 lines
508 B
C++

#ifndef _LOG_H_
#define _LOG_H_
#include <string>
#include <map>
#include <boost/filesystem.hpp>
#include "StdStream.h"
#include "Singleton.h"
class CLog : public CSingleton<CLog>
{
public:
CLog();
virtual ~CLog();
void Print(const char*, const char*, ...);
private:
typedef std::map<std::string, Framework::CStdStream> LogMapType;
Framework::CStdStream& GetLog(const char*);
boost::filesystem::path m_logBasePath;
LogMapType m_logs;
};
#endif