Subversion Repositories spk

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
#include "log.h"
2
 
3
CLog *CLog::m_pInstance = 0;
4
 
5
CLog::CLog()
6
{
7
}
8
 
9
CLog::~CLog()
10
{
11
}
12
 
13
CLog *CLog::create()
14
{
15
	if ( !m_pInstance ) {
16
		m_pInstance = new CLog();
17
	}
18
	return m_pInstance;
19
}
20
 
21
void CLog::release()
22
{
23
	if ( m_pInstance ) {
24
		delete m_pInstance;
25
	}
26
	m_pInstance = 0;
27
}
28
 
29
void CLog::log(const CyString &sLogText)
30
{
31
	CLog *pLogger = CLog::create();
32
	pLogger->_log(sLogText);
33
}
34
 
35
void CLog::_log(const CyString &sLogText)
36
{
37
}