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>־ ***********************/
|
/************************* <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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
RKLog.h
4
RKLog.h
@ -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);
|
||||||
@ -38,4 +38,4 @@ typedef enum {
|
|||||||
STAT_DIR
|
STAT_DIR
|
||||||
} ENUM_FILE_STAT;
|
} ENUM_FILE_STAT;
|
||||||
int file_stat(string strPath);
|
int file_stat(string strPath);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user