日志文件,它記錄著操作系統(tǒng)及其各種服務(wù)程序運(yùn)行的細(xì)節(jié),對(duì)操作系統(tǒng)起著非常重要的作用。日志文件可以提供關(guān)于潛在問(wèn)題、錯(cuò)誤和安全漏洞等方面的提示。雖然分析和提取日志文件的信息即耗時(shí)又復(fù)雜,但如果通過(guò)工具對(duì)它進(jìn)行高效和正確得分析,它甚至可以提供關(guān)于服務(wù)器負(fù)載和容量方面的警告。本文將描述通過(guò)使用Microsoft Visual C++ 6.0工具所開(kāi)發(fā)出來(lái)的日志分析工具,并詳細(xì)介紹基于MFC框架的日志分析系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)。該工具在傳統(tǒng)的分析方法上加入了更人性的設(shè)置,除能對(duì)日志文件進(jìn)行簡(jiǎn)單的分析外,分析規(guī)則可根據(jù)人為的需求進(jìn)行設(shè)置更改,從用戶角度極大改善了傳統(tǒng)的日志分析工具。
關(guān)鍵詞: 日志分析;Visual C++;MFC框架
ABSTRACT
Log files, which record every detail of the operating system and its various services application, it has function on enhancing the stability and security of the operating system , playing a very important role. Log files can provide safety tips form the areas of information on potential problems, errors and loopholes. Although the extraction and analysis of the contents of log files is extremely time-consuming and complicated, if we can efficiently and correctly analyze log files by a tool, it even can provide the override warning of server or warning on server capacity. This paper will attempt to describe the log switch system which was developed by the framework of the MFC-based under the tool of Microsoft Visual C + + 6.0. Based on the brief introduction of C++ language, MFC-based design Framework and the mind of object-oriented which are frequently implemented by Windows applications, this paper attempts to introduce the design and implementation of MFC-based log system in detail. Besides the traditional method of analysis, the system added settings which are more artificial. Except the simple analysis of log files, the system achieved that users can analysis logs as they want by resetting the key fields under a certain rule no matter how the log format is changed. It was got greatly improved for traditional log analysis tools from users perspective.
Keyword:log analyze; Visual C++,MF Construction
目錄