title: Enabling IIS Rewrite Module Logging
body: <p>I am using IIS 7.5 on Windows 2008 Server R2 and have installed the IIS Rewrite Module v2.0. I am trying to enable logging to see exactly what rewrite rule is being used. Based on research I have learned that I need to modify (update) C:\Windows\System32\inetsrv\config\applicationHost.config. In order to do so I have created a NEW XML schema file called "RewriteLogging.xml" and have placed it in C:\Windows\System32\inetsrv\config\schema directory. The file contains the following code:</p>
  
  <pre><code>&lt;!--
  IIS Rewrite Logging
  --&gt;
  
  &lt;configSchema&gt;
  
    &lt;sectionSchema name="system.applicationHost/RewriteLogging"&gt;
      &lt;attribute name="RewriteLog" type="string" defaultValue="C:\inetpub\logs\LogFiles\rewrite.txt" /&gt;
      &lt;attribute name="RewriteLogLevel" type="int" defaultValue="9" /&gt;
    &lt;/sectionSchema&gt; 
  
  &lt;/configSchema&gt;
  </code></pre>
  
  <p>After restarting the web server I notice that the applicationHost.config file's date and time stamp get updated but my new directives are not getting added. </p>
  
  <p>So here are my questions:</p>
  
  <ol>
  <li>Am I approaching this the correct way?</li>
  <li>Am I correct in creating a separate XML file and placing it in the schema directory?</li>
  <li>Should I be creating a NEW section Schema name or should I be using an existing one? If so which one?</li>
  <li>Am I using the correct syntax in the XML file? When I open it up in a browser I am not seeing any errors which is encouraging.</li>
  <li>Am I missing something altogether or forgetting an important step?</li>
  </ol>
  
  <p>Any help would be GREATLY appreciated.</p>