2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cLog
|
|
|
|
{ // tolua_export
|
|
|
|
private:
|
|
|
|
FILE * m_File;
|
|
|
|
static cLog * s_Log;
|
|
|
|
|
|
|
|
public:
|
|
|
|
cLog(const AString & a_FileName);
|
|
|
|
~cLog();
|
2014-01-16 02:34:10 -05:00
|
|
|
void Log(const char * a_Format, va_list argList);
|
2014-01-15 12:28:51 -05:00
|
|
|
void Log(const char * a_Format, ...);
|
2013-01-11 23:46:01 -05:00
|
|
|
// tolua_begin
|
2014-01-15 12:28:51 -05:00
|
|
|
void SimpleLog(const char * a_String);
|
|
|
|
void OpenLog(const char * a_FileName);
|
2012-06-14 09:06:06 -04:00
|
|
|
void CloseLog();
|
|
|
|
void ClearLog();
|
|
|
|
static cLog* GetInstance();
|
|
|
|
};
|
2013-01-11 23:46:01 -05:00
|
|
|
// tolua_end
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|