Log4Net C# - Create log folder by date
<p>Is it possible to create a log path everyday which writes the logs in the following folder format. </p>

<pre><code>D:\Logs\yyyyMMdd\App1\App.txt
</code></pre>

<p>Will Log4Net create the path if it does not exist. ? </p>

<p>I tried the following, but it does't seem to work.</p>

<pre><code> &lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="D:\Logs\" /&gt;
      &lt;appendToFile value="true" /&gt;
      &lt;datePattern value="yyyyMMdd'\App1\App.txt'" /&gt;
      &lt;rollingStyle value="Date" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date{ABSOLUTE} [%logger] %level - %message%newline%exception" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
</code></pre>

<p>Thanks in advance.</p>