title: Logback-test.xml configuration is producing two log files instead of one?
body: <p>When I stop running my <code>spring-boot</code> application there are <strong>two</strong> log files produced rather than <strong>one</strong> (one is expected).</p>
  
  <p>What is wrong in my <code>Logback-test.xml</code> file below that may be causing this?</p>
  
  <p><strong>logback-test.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;timestamp key="myTimestamp" datePattern="yyyy-MM-dd'_'HH-mm-ss.SSS"/&gt;
  
      &lt;include resource="org/springframework/boot/logging/logback/base.xml"/&gt;
  
      &lt;logger name="org.springframework.web" level="INFO"/&gt;
  
      &lt;!-- Send debug messages to System.out --&gt;
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;!-- By default, encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder --&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{HH:mm:ss.SSS}  - %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;C:\path\to\my\file\myLog-${myTimestamp}.log&lt;/file&gt;
          &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
              &lt;Pattern&gt;%d{yyyy-MM-dd_HH:mm:ss.SSS} - %msg%n&lt;/Pattern&gt;
          &lt;/encoder&gt;
  
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&gt;
              &lt;FileNamePattern&gt;myLog.%i{yyyy-MM-dd_HH:mm:ss.SSS}}.log&lt;/FileNamePattern&gt;
              &lt;MinIndex&gt;1&lt;/MinIndex&gt;
              &lt;MaxIndex&gt;10&lt;/MaxIndex&gt;
          &lt;/rollingPolicy&gt;
  
          &lt;triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&gt;
              &lt;MaxFileSize&gt;2MB&lt;/MaxFileSize&gt;
          &lt;/triggeringPolicy&gt;
  
      &lt;/appender&gt;
  
      &lt;logger name="com.my.package" level="INFO" additivity="false"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="FILE" /&gt;
      &lt;/logger&gt;
  
      &lt;!-- By default, the level of the root level is set to DEBUG --&gt;
      &lt;root level="INFO"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
      &lt;/root&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The two files being created are e.g.:</p>
  
  <pre><code>myLog-2016-04-22_15-47-30.126.log
  
  and
  
  myLog-2016-04-22_15-47-30.922.log
  </code></pre>