RKLog: disable record log by default

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
This commit is contained in:
Eddie Cai 2017-04-18 10:13:25 +08:00
parent 5823461aa3
commit bfb8da1907
2 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ void CRKLog::Record(const char *lpFmt,...)
/************************* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ ***********************/ /************************* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ ***********************/
char szBuf[1024] = ""; char szBuf[1024] = "";
GET_FMT_STRING(lpFmt, szBuf); GET_FMT_STRING(lpFmt, szBuf);
printf("%s\n",szBuf);
if ((m_enable) && (m_path.size() > 0)) if ((m_enable) && (m_path.size() > 0))
{ {
printf("%s\n",szBuf);
Write( szBuf); Write( szBuf);
} }
} }

View File

@ -19,7 +19,7 @@ public:
void SetEnableLog(bool bEnable); void SetEnableLog(bool bEnable);
property<CRKLog, string, READ_ONLY> LogSavePath; property<CRKLog, string, READ_ONLY> LogSavePath;
property<CRKLog, bool, READ_WRITE> EnableLog; property<CRKLog, bool, READ_WRITE> EnableLog;
CRKLog(string logFilePath, string logFileName, bool enable = true); CRKLog(string logFilePath, string logFileName, bool enable = false);
~CRKLog(); ~CRKLog();
bool SaveBuffer(string fileName, PBYTE lpBuffer, DWORD dwSize); bool SaveBuffer(string fileName, PBYTE lpBuffer, DWORD dwSize);
void PrintBuffer(string &strOutput, PBYTE lpBuffer, DWORD dwSize, UINT uiLineCount = 16); void PrintBuffer(string &strOutput, PBYTE lpBuffer, DWORD dwSize, UINT uiLineCount = 16);