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
XML Version = "1.0" encoding = "GB2312"?>
log-mappings>
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
XML Version = "1.0" encoding = "gb2312"?>