Play-/Source/Log.h

28 lines
485 B
C
Raw Normal View History

#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:
2018-04-30 21:01:23 +01:00
CLog();
virtual ~CLog();
2018-04-30 21:01:23 +01:00
void Print(const char*, const char*, ...);
private:
typedef std::map<std::string, Framework::CStdStream> LogMapType;
2018-04-30 21:01:23 +01:00
Framework::CStdStream& GetLog(const char*);
2018-04-30 21:01:23 +01:00
boost::filesystem::path m_logBasePath;
LogMapType m_logs;
};
#endif