📄 log.h
字号:
/****************************************************************************************
* ///////////////////////////////////////////////////////////////////////////////////////
* Original Filename: Log.h
*
* History:
* Created/Modified by Date Main Purpose/Changes
* Souren M. Abeghyan 2001/05/25 Interface for the CLog class
*
* Comments:
* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
****************************************************************************************/
#if !defined(AFX_LOG_H__82043CA7_5940_4F7E_A316_7F91096B2008__INCLUDED_)
#define AFX_LOG_H__82043CA7_5940_4F7E_A316_7F91096B2008__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
using namespace std;
#define MAX_MSG_SIZE 1024
class CLog
{
public:
BOOL ClearLog(const char*);
BOOL LogMessage(const char*, const char*, const char* = NULL, long = NULL);
CLog();
virtual ~CLog();
private:
FILE *m_f;
char szLogFilePath[MAX_PATH];
char szMessage[MAX_MSG_SIZE];
char szDT[128];
struct tm *newtime;
long ltime;
CRITICAL_SECTION cs;
};
#endif // !defined(AFX_LOG_H__82043CA7_5940_4F7E_A316_7F91096B2008__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -