title: FileNamePattern in RollingFileAppender - logback Configuration
body: <p>I have the following RollingFileappender in my logback configuration file.</p>
  
  <pre><code>&lt;appender name="RollingFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
    &lt;File&gt;C:\Files\MyLogFile.log&lt;/File&gt;      
    &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt; 
    &lt;FileNamePattern&gt;C:\Files\MyLogFile.%d{yyyy-MM-dd}.log&lt;/FileNamePattern&gt;       
    &lt;MaxHistory&gt;30&lt;/MaxHistory&gt;     
    &lt;/rollingPolicy&gt;      
    &lt;encoder&gt;
        &lt;pattern&gt;%date %level [%thread] %logger{60} [%file:%line] %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt; 
    &lt;/appender&gt;
  </code></pre>
  
  <p>It does write a file to the above directory as MyLogFile.log but does not append the date as specified in the <code>FileNamePattern</code>. Any ideas how can I manage to append the date in my fileName. Thanks.</p>