1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| #if !defined(__EDGE_LOG_INCLUDED__)
| #define __EDGE_LOG_INCLUDED__
|
| class CEdge_Log
| {
| // Construction
| public:
| CEdge_Log();
| virtual ~CEdge_Log();
|
| public:
| void DisplayEdgeLog(char* str, ...);
| void DisplayEdgeLog(CString str);
| BOOL WriteToFile(CTime& time, CString& strContents);
| BOOL WriteToFile(CTime& time, char* strContents);
| BOOL MakeLogFile();
| void SetPath(CString& strPath, CString& strName, BOOL bDelete, int nRemainCount);
|
| protected:
| CRITICAL_SECTION m_csLog;
| char m_strBuffer[512];
| CTime m_TimeLogFile;
| CFile *m_pFileLog;
| CString m_strLogPath;
| CString m_strLogFile;
|
| };
|
|
| #endif
|
|