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();
|
|
|
|
void Log(const char* a_Format, va_list argList );
|
|
|
|
void Log(const char* a_Format, ...);
|
2013-01-11 23:46:01 -05:00
|
|
|
// tolua_begin
|
2012-06-14 09:06:06 -04:00
|
|
|
void SimpleLog(const char* a_String);
|
|
|
|
void OpenLog( const char* a_FileName );
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|