title: Spring boot logback not logging to file
body: <p>I am using the spring-boot-start-web dependency in my web mvc application and making use of logback. I have a logback-spring.xml file located in my static resources directory with the following config</p>
  
  
  
  <p></p>
  
  <pre><code>&lt;property name="MY_LOG_FILE" value="C:\mylog.log" /&gt;
  
  &lt;appender name="MY_APPENDER"
      class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;${FILE_LOG_PATTERN}&lt;/pattern&gt;
      &lt;/encoder&gt;
      &lt;file&gt;${MY_LOG_FILE}&lt;/file&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&gt;
          &lt;fileNamePattern&gt;${MY_LOG_FILE}.%i&lt;/fileNamePattern&gt;
      &lt;/rollingPolicy&gt;
      &lt;triggeringPolicy
          class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&gt;
          &lt;MaxFileSize&gt;10MB&lt;/MaxFileSize&gt;
      &lt;/triggeringPolicy&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;logger name="com.mydomain.myapp" level="INFO" additivity="false"&gt;
      &lt;appender-ref ref="CONSOLE" /&gt;
      &lt;appender-ref ref="MY_APPENDER" /&gt;
  &lt;/logger&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I use the logger in my controllers it correctly logs to the console output, but the file is nowhere to be found. As far as what I can find online it looks like i'm setting it up correctly, but obviously I am not.</p>
  
  <p>EDIT: It ended up being resolved by performing a Maven Update Project on the parent project, this project was part of a larger system of modules.</p>