⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log.h

📁 提供windows和unix下各种级别日志,包括 xml
💻 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 + -