After the two articles updated in the previous period, they were not updated for a long time.
Put a previously used log class. The code is short and does not need to be described in many characters. The Code is as follows:
LogCategory = {logCategory = Log (LogCategory = addLog (DateTime currentTime = strPath = System. AppDomain. CurrentDomain. SetupInformation. ApplicationBase ++ logCategory + currentTime. ToString ((! StrFile = currentTime. ToString (strContent = currentTime. ToString (strContent ++ = logContent + (writer = StreamWriter (strPath + strFile ,}
Usage:
Create an instance and specify the name of the folder to store. For example, I create an eventLOg and an errorLog.
When you need to save the event or error information, you only need to add one to the corresponding instance.
After the software runs for a period of time, you can check the corresponding events and error logs.
Next article: (about leapmotion)