mirror of
https://github.com/libretro/Play-.git
synced 2024-11-27 18:50:28 +00:00
27 lines
538 B
C++
27 lines
538 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include <boost/filesystem.hpp>
|
|
#include "StdStream.h"
|
|
#include "Singleton.h"
|
|
|
|
class CLog : public CSingleton<CLog>
|
|
{
|
|
public:
|
|
CLog();
|
|
virtual ~CLog() = default;
|
|
|
|
void Print(const char*, const char*, ...);
|
|
void Warn(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;
|
|
bool m_showPrints = false;
|
|
};
|