logging iisreset

天大地大妈咪最大 提交于 2019-12-11 17:33:37

问题


Is there a log that lets you know when the web site was stopped and started in iis?

I'm looking for a way to see when the web site was stopped and started.

Does anyone know if there is a way to see?


回答1:


Your best bet is to put something in your global.asax file in Application_start.

You can add something to a log file, or shoot yourself an email whenever this fires.




回答2:


Look in Windows Event Viewer > Windows Logs > System.

Filter events with Source = IIS-IISReset.

An example event message is:

IIS stop command received from user NT AUTHORITY\SYSTEM. The logged data is the status code.



来源:https://stackoverflow.com/questions/6143129/logging-iisreset

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