mirror of
https://github.com/sharkcz/rkdeveloptool.git
synced 2024-11-22 14:06:47 +01:00
RKLog: disable record log by default
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
This commit is contained in:
parent
5823461aa3
commit
bfb8da1907
@ -62,9 +62,9 @@ void CRKLog::Record(const char *lpFmt,...)
|
||||
/************************* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ ***********************/
|
||||
char szBuf[1024] = "";
|
||||
GET_FMT_STRING(lpFmt, szBuf);
|
||||
printf("%s\n",szBuf);
|
||||
if ((m_enable) && (m_path.size() > 0))
|
||||
{
|
||||
printf("%s\n",szBuf);
|
||||
Write( szBuf);
|
||||
}
|
||||
}
|
||||
|
2
RKLog.h
2
RKLog.h
@ -19,7 +19,7 @@ public:
|
||||
void SetEnableLog(bool bEnable);
|
||||
property<CRKLog, string, READ_ONLY> LogSavePath;
|
||||
property<CRKLog, bool, READ_WRITE> EnableLog;
|
||||
CRKLog(string logFilePath, string logFileName, bool enable = true);
|
||||
CRKLog(string logFilePath, string logFileName, bool enable = false);
|
||||
~CRKLog();
|
||||
bool SaveBuffer(string fileName, PBYTE lpBuffer, DWORD dwSize);
|
||||
void PrintBuffer(string &strOutput, PBYTE lpBuffer, DWORD dwSize, UINT uiLineCount = 16);
|
||||
|
Loading…
Reference in New Issue
Block a user