|
#pragma once
#include <fstream>
class CLog
{
public:
static CLog* Instance();
static void ShutDown();
void LogToFile(CString sMsg);
private:
CLog(void);
CLog(CLog const&);
CLog& operator=(CLog const&);
static CLog *m_pInstance;
static CCriticalSection m_csinit;
std::ofstream m_LogFile;
CCriticalSection m_cs;
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.