mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 06:07:56 +03:00
27 lines
559 B
C
27 lines
559 B
C
![]() |
#ifndef _LOG_H_
|
||
|
#define _LOG_H_
|
||
|
|
||
|
#include <string>
|
||
|
#include <map>
|
||
|
#include "StdStream.h"
|
||
|
#include "Singleton.h"
|
||
|
|
||
|
class CLog : public CSingleton<CLog>
|
||
|
{
|
||
|
public:
|
||
|
void Print(const char*, const char*, ...);
|
||
|
|
||
|
private:
|
||
|
friend class CSingleton<CLog>;
|
||
|
typedef std::map<std::string, Framework::CStdStream*> LogMapType;
|
||
|
|
||
|
CLog();
|
||
|
virtual ~CLog();
|
||
|
|
||
|
Framework::CStdStream* GetLog(const char*);
|
||
|
|
||
|
LogMapType m_logs;
|
||
|
};
|
||
|
|
||
|
#endif
|