开发者

logging iisreset

开发者 https://www.devze.com 2023-03-08 10:45 出处:网络
Is 开发者_如何学编程there a log that lets you know when the web site was stopped and started in iis?

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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消