XML Application in System Log Design

zhaozj2021-02-16  51

In a system, the log is very important. If your software has multiple development versions, the following design patterns may be useful to you. Firstly design such an XML file

Store log information LogMessage.xml file, put it in and executes a directory

In the program, please please include "ObtgcomCommonLog.h", then call the log processing when you need time log processing.

ObtgcomminLog :: Writemeslog (cstring code) method, Code corresponds to code in logMessage.xml

The OBTGCOMCOMMONLOG :: WritemesLog (CString code) method is OK in the place you need. For multi-language. You only need to change

Does this do it very? Is it good? I have implemented in Java, C , Delphi.

转载请注明原文地址:https://www.9cbs.com/read-25256.html

New Post(0)