Iis – Will changing IIS Advanced Logging config restart app

iisiis-7.5logging

I am using the IIS Advanced Logging module on a production server running IIS 7.5.

I need to change some of the settings (specifically, which fields are logged) and cannot find anywhere that indicates whether or not this will cause an AppPool recycle or an App restart. Since it is a production system, I need to avoid this.

Thanks in advance.

Best Answer

Changing the fields to be logged will not cause the AppPool to recycle but it will kill the current AppDomain and start a new one on the next request. So any session state (if in process) is lost.

You can easily test this:

 <%@ Page language="c#" %>
 <html>
    <% if (Session["starttime"] == null) { Session.Add("starttime", DateTime.Now.ToString()); }; %>
    <%= Session["starttime"] %>
 </html>

load the page twice to see the time, then change your log settings and reload the page, you'll get a new time.