📄 log.h
字号:
// TTrace.h: interface for the TTrace class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __LOG_H__
#define __LOG_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <iostream.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <time.h>
#include <dirent.h>
class CLogFile
{
private:
char m_szFilePath[256];
int m_nFileSize;
FILE* m_pLogFile;
bool bOpen;
// Construction
public:
CLogFile();
~CLogFile();
void SetPath(const char* szPath,char* fileName);
void WriteLog(const char *pBuffer);
bool IsWriteLog();
void ShowInfo(char* buffer);
void StartWriteLog();
void StopWriteLog();
void WriteInfoLog(bool bShow,const char* fmt, ... );
void WriteErrorLog(bool bShow,const char* fmt, ... );
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -