title: Java Spring Boot external logging file jar
body: <p>In my Spring Boot application I want to use logging to an external file.</p>
  
  <p>So I configured application.properties like this:</p>
  
  <pre><code># LOGGING
  logging.path=/var/logs
  logging.file=my-application.log
  </code></pre>
  
  <p>I want to us the application on a windows system and want to use NSSM to start the jar file as a windows service.</p>
  
  <p>Also I want the external logfile I mentioned.</p>
  
  <p>At the current state I tested this configuration only in my eclipse and the logfile called <code>my-application.log</code> is only present in my classpath.</p>
  
  <p>There was no folder <code>var</code> created.</p>
  
  <p>Anyway...</p>
  
  <p>How can I configure this application logging to work like I wanted.</p>
  
  <ul>
  <li>Use Spring Boot application as jar</li>
  <li>Wrap it with NSSM to run as a windows service</li>
  <li>Have an external logging file at the Location "D:\applications\SpringBootApp\logging\data.log"</li>
  </ul>