What is event logging? and how do I write an event log file?

不打扰是莪最后的温柔 提交于 2019-12-13 17:45:08

问题


What is event logging? and how do I write an event log file for an application? I want to log all the activities of the application including when it uses a .dll, etc. and also show information of the application.


回答1:


There is a good article on CodeProject.com that should give you the information you need to understand and use the Windows event log.

http://www.codeproject.com/KB/system/xeventlog.aspx

If you don't want to use the Windows event log and log to a text file, etc then take a look at Pantheios.




回答2:


As you write to an event log file, if the file is not created then it will be created write to an event log




回答3:


I think you mean this and for cpp source: http://msdn.microsoft.com/en-us/library/aa382690(VS.85).aspx



来源:https://stackoverflow.com/questions/655592/what-is-event-logging-and-how-do-i-write-an-event-log-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!