title: Log4Net Not Logging When Deployed
body: <p>Using version <code>1.2.11</code>. Logging works on my dev machine, but won't create the directory or log when deployed.  </p>
  
  <p>I tried: </p>
  
  <ul>
  <li>giving full directory access to IUSR, Everyone, local users.</li>
  <li>running the app pool as a local admin account.</li>
  <li>to use internal debugging as <a href="http://haacked.com/archive/2006/09/27/Log4Net_Troubleshooting.aspx" rel="noreferrer">Phil Haack describes here</a>.</li>
  </ul>
  
  <p>Stopped and started the app pool after each change.</p>
  
  <p>Nothing is produced in the output file.</p>
  
  <p>My log4Net config is below.  Any thoughts on what to try next?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;log4net debug="true"&gt;
    &lt;appender name="file" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="..\Logging\log.txt" /&gt;
      &lt;appendToFile value="true" /&gt;
      &lt;rollingStyle value="Composite" /&gt;
      &lt;datePattern value="yyyyMMdd" /&gt;
      &lt;maxSizeRollBackups value="10" /&gt;
      &lt;maximumFileSize value="1MB" /&gt;
      &lt;threshold value="DEBUG" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
    &lt;appender name="console" type="log4net.Appender.DebugAppender"&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;param name="ConversionPattern" value="%d [%t] %-5p %c [%x] &amp;lt;%X{auth}&amp;gt; - %m%n" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
    &lt;root&gt;
      &lt;level value="ALL" /&gt;
      &lt;appender-ref ref="file" /&gt;
      &lt;appender-ref ref="console" /&gt;
    &lt;/root&gt;
  &lt;/log4net&gt;
  </code></pre>