The Application Event Log that is commented out in the app.config file。
allows you to write to the event log, for debug/error info, instead of writing a text file:
http://www.samspublishing.com/articles/article.asp?p=606221&seqNum=4&rl=1
Once you uncomment all you have to do is:
Application.Log.WriteEntry("Something disasterous happened in my app :)", TraceEventType.Information);Before you had to use a component from the toolbox, this is now available straight out of the box in the my namespace
本文介绍如何在app.config文件中启用应用程序事件日志记录功能,通过简单的配置更改即可使用该功能来记录调试和错误信息,替代传统的文本文件记录方式。

被折叠的 条评论
为什么被折叠?



