title: Logback rolling file appender not working
body: <p>Below is my logback configuration</p>
  
  <pre><code>&lt;appender name="TIME_BASED_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;C:\\Users\\ADMIN\\Documents\\NetBeansProjects\\timelog.log&lt;/file&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"&gt;      
          &lt;!-- daily rollover --&gt;
          &lt;fileNamePattern&gt;C:\\Users\\ADMIN\\Documents\\NetBeansProjects\\timelog.%d{yyyy-MM-dd-HH-mm}.log&lt;/fileNamePattern&gt;
          &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;maxFileSize&gt;1M&lt;/maxFileSize&gt;
          &lt;totalSizeCap&gt;10M&lt;/totalSizeCap&gt;
  
      &lt;/rollingPolicy&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%relative [%thread] %-5level %logger{35} - %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
    &lt;/appender&gt; 
  
    &lt;logger name="timeBased" level="INFO"&gt;
      &lt;appender-ref ref="TIME_BASED_FILE"/&gt;
      &lt;appender-ref ref="consoleAppender"/&gt;
    &lt;/logger&gt; 
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>public class Test {
      public static void main(String [] args) {
          Logger logger = (Logger)LoggerFactory.getLogger("timeBased");
          logger.info("info");
      }
  }
  </code></pre>
  
  <p>This code only prints on console, no file is created in specified directory. Folder has all write permissions. What is going wrong? Logback doesn't show any errors also. Please help. I am using windows7.</p>