title: Log4Net: Log with UTC times
body: <p>Using log4net 1.2.11.0 w/ .NET, how can I get the RollingFileAppender to output UTC dates?</p>
  
  <p>According to Apache it should be as easy as:</p>
  
  <pre><code>&lt;dateTimeStrategy type="log4net.Appender.RollingFileAppender+UniversalDateTime" /&gt;
  </code></pre>
  
  <p>Unfortunately this is not working.</p>
  
  <p>The entirety of my log4net configuration is:</p>
  
  <pre><code>  &lt;log4net&gt;
      &lt;appender name="RollingFile" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="Log-.txt" /&gt;
        &lt;rollingStyle value="Date" /&gt;
        &lt;datePattern value="yyyyMMdd"/&gt;
        &lt;PreserveLogFileNameExtension value="true" /&gt;
        &lt;staticLogFileName value="false"/&gt;
        &lt;appendToFile value="true" /&gt;
        &lt;maxSizeRollBackups value="10" /&gt;
        &lt;dateTimeStrategy type="log4net.Appender.RollingFileAppender+UniversalDateTime" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%date %-5level %logger - %message%newline" /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;root&gt;
        &lt;!-- Options are "ALL", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" and "OFF". --&gt;
        &lt;level value="DEBUG" /&gt;
        &lt;appender-ref ref="RollingFile" /&gt;
      &lt;/root&gt;
    &lt;/log4net&gt;
  </code></pre>
  
  <p>Using a decompiler I can see that the log4net dll has the type 'UniversalDateTime' as a private class inside of RollingFileAppender.</p>