added: to Log:

void LogBinary(const char * blob, size_t blob_len);
       void LogBinary(const std::string & blob);
       int LogLevel();



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@866 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-07-31 03:29:16 +00:00
parent 1ec61ffa11
commit 1c2589a2f2
2 changed files with 89 additions and 0 deletions

View File

@@ -54,10 +54,17 @@ public:
template<class StringType>
void LogString(const StringType & value, size_t max_size);
void LogBinary(const char * blob, size_t blob_len);
void LogBinary(const std::string & blob);
void SystemErr(int err);
void SaveLog();
void SaveLogAndClear();
int LogLevel();
private:
// buffer for the log
@@ -97,6 +104,8 @@ private:
bool save_each_line;
void OpenFile();
char GetHEXdigit(unsigned char c);
void ToHEX(char * buf, unsigned char c);
};