2012-02-18 12:51:34 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "FileDefine.h"
|
|
|
|
|
2012-02-01 08:43:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cLog
|
|
|
|
{ // tolua_export
|
2011-10-03 14:41:19 -04:00
|
|
|
private:
|
2012-02-01 08:43:47 -05:00
|
|
|
FILE * m_File;
|
|
|
|
static cLog * s_Log;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
|
|
|
public:
|
2012-02-01 08:43:47 -05:00
|
|
|
cLog(const AString & a_FileName);
|
2011-10-03 14:41:19 -04:00
|
|
|
~cLog();
|
|
|
|
void Log(const char* a_Format, va_list argList );
|
|
|
|
void Log(const char* a_Format, ...);
|
|
|
|
//tolua_begin
|
|
|
|
void SimpleLog(const char* a_String);
|
|
|
|
void OpenLog( const char* a_FileName );
|
|
|
|
void CloseLog();
|
|
|
|
void ClearLog();
|
|
|
|
static cLog* GetInstance();
|
|
|
|
};
|
|
|
|
//tolua_end
|
2012-02-01 08:43:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|