title: Spring boot spring.log under tmp
body: <p>I have gone through <a href="https://stackoverflow.com/questions/38081145/spring-boot-uses-tmp-spring-log-file-during-testing">Spring Boot uses /tmp/spring.log file during testing</a></p>
  
  <p>But that didnt help. I have a logback.xml in my spring boot application and when i start it up it creates a log in var/tmp/spring.log. Now this cant work on client site. Is there a way to configure it to not create it my log back is already logging the console in the log file i have defined in my appender. I didnt even know this was happening. and this spring.log is used with a Rolling file appender which means that it will keep on creating logs each day.</p>
  
  <p>I removed: </p>
  
  <pre><code>&lt;!--include resource="org/springframework/boot/logging/logback/base.xml"/--&gt;
  </code></pre>
  
  <p>from my logback.xml but it still didnt stop it from accessing the file or creating it</p>
  
  <p>any help will be appreciated</p>
  
  <p>EDIT: my logback.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;configuration scan="true"&gt;
      &lt;include resource="org/springframework/boot/logging/logback/base.xml"/&gt;
  
      &lt;appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;fileNamePattern&gt;logs/fix.%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;90&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;charset&gt;utf-8&lt;/charset&gt;
              &lt;Pattern&gt;%d %-5level [%thread] %logger{0}: %msg%n&lt;/Pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"&gt;
          &lt;queueSize&gt;512&lt;/queueSize&gt;
          &lt;appender-ref ref="FILE"/&gt;
      &lt;/appender&gt;
  
  
  
  
  
  &lt;logger name="com.comp.myapp" level="INFO"/&gt;
  
  
  &lt;contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"&gt;
      &lt;resetJUL&gt;true&lt;/resetJUL&gt;
  &lt;/contextListener&gt;
  
  &lt;root level="INFO"&gt;
      &lt;appender-ref ref="FILE" /&gt;
      &lt;!--&lt;appender-ref ref="CONSOLE"/&gt;--&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p></p>
  
  <p>The problem that arises from this is that if i deployed the same application twice even with the same user. both applications are writing to the same file which makes no sense. If i had another spring boot application also deployed on the same machine they will write to the same spring.log in tmp folder. I dont understand whats the reason behind creating a "sneaky" log ( i would call it sneaky) </p>