mirror of
https://github.com/rockchip-linux/rkdeveloptool.git
synced 2024-11-23 01:53:41 +08: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);
|
||||
}
|
||||
}
|
||||
|
4
RKLog.h
4
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);
|
||||
@ -38,4 +38,4 @@ typedef enum {
|
||||
STAT_DIR
|
||||
} ENUM_FILE_STAT;
|
||||
int file_stat(string strPath);
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user