📄 logtrace.h
字号:
#pragma once
#include "stdafx.h"
// This class is exported from the LogTrace.dll
class CLogTrace {
public:
CLogTrace(void);
// TODO: add your methods here.
~CLogTrace(void);
//Log Simple Text
BOOL LOG_DBG(LPCTSTR log);
//Log Text with a specific String
BOOL LOG_DBG(LPCTSTR log, LPCTSTR str);
//Log text with error code
BOOL LOG_ERR(LPCTSTR log, DWORD errCode);
//Format input string to write
BOOL Format(LPCTSTR log, LPCTSTR str);
//Format with error code
BOOL Format(LPCTSTR log, DWORD errCode);
//Set File Name
BOOL SetFileName(LPCTSTR fName);
//Initialize Logging
BOOL Init();
//WriteLog
BOOL WriteLog();
//GetDate Time
BOOL GetDateTime(LPTSTR lpDateTime);
private:
LPTSTR Log;
LPTSTR fName;
FILE *logFP;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -