How to store event log in Folder
问题 On an ASP NET project (C#) I'm using the System.Diagnostics namespace to log errors, warning and information. Using Windows 7 I see that the log I've set for the project is under "Applications and Services Logs". How can I set in code to create a folder and put it under "Applications and Services Logs[SOME FOLDER]\Applications and Services Logs", for examples? 回答1: When creating your Event Source , specify a Log Name . It will become the "folder" in the Event Viewer. EventLog