title: Logback not creating Log File in SpringBoot
body: <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;include resource="org/springframework/boot/logging/logback/base.xml" /&gt;
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;withJansi&gt;true&lt;/withJansi&gt;
          &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
              &lt;Pattern&gt;%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %logger - %msg%n&lt;/Pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;file&gt;/logs/tomcat/LogBackDemo/logback/app_LogBackDemo.log&lt;/file&gt;
  
          &lt;withJansi&gt;true&lt;/withJansi&gt;
          &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
              &lt;Pattern&gt;%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %logger - %msg%n&lt;/Pattern&gt;
          &lt;/encoder&gt;
  
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;!-- rollover daily --&gt;
              &lt;fileNamePattern&gt;/logs/tomcat/LogBackDemo/logback/app_LogBackDemo.%d{yyyy-MM-dd}.%i.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;10&lt;/maxHistory&gt;
              &lt;timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"&gt;
                  &lt;maxFileSize&gt;10MB&lt;/maxFileSize&gt;
              &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;
  
          &lt;/rollingPolicy&gt;
  
      &lt;/appender&gt;
  
      &lt;logger name="com.logBack.demo" level="debug"
              additivity="false"&gt;
          &lt;appender-ref ref="FILE" /&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
      &lt;/logger&gt;
  
      &lt;root level="error" additivity="false"&gt;
          &lt;appender-ref ref="FILE" /&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This is my logback-spring.xml file but when I am running applications logs are displaying properly in Console but log file is not creating at specified location. I am using windows system so Ideally log file should create in c:/logs/tomcat/LogBackDemo/logback/app_LogBackDemo.log location.</p>