Subversion Repositories spk

Rev

Rev 7 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#include "log.h"

CLog *CLog::m_pInstance = 0;

CLog::CLog()
{
}

CLog::~CLog()
{
}

CLog *CLog::create()
{
        if ( !m_pInstance ) {
                m_pInstance = new CLog();
        }
        return m_pInstance;
}

void CLog::release()
{
        if ( m_pInstance ) {
                delete m_pInstance;
        }
        m_pInstance = 0;
}

void CLog::log(const CyString &sLogText)
{
        CLog *pLogger = CLog::create();
        pLogger->_log(sLogText);
}

void CLog::_log(const CyString &sLogText)
{
}