title: Specify a relative path in application properties spring file
body: <p>I have not found any question with the same issue, but I'm sorry if the question is a duplicate.</p>
  
  <p>I have this application.properties file:</p>
  
  <pre><code>## Logback
  #logging.level.root=error
  #logging.level.com.myapp.test=error
  #logging.console=true
  #logging.path=%AppData%/MyFolder/log
  #logging.file=${logging.path}/logfile.log
  </code></pre>
  
  <p>And this is my logback.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
  
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;%d{yyyy-MM-dd HH:mm:ss} [%t] [%F:%L] - %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;${logging.file}&lt;/file&gt;
          &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
              &lt;pattern&gt;%d{yyyy-MM-dd HH:mm:ss} [%t] [%F:%L] - %msg%n&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;logger name="com.myapp.test" level="ERROR" additivity="false"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
          &lt;appender-ref ref="FILE" /&gt;
      &lt;/logger&gt;
  
      &lt;root level="ERROR"&gt;
          &lt;appender-ref ref="STDOUT" /&gt;
      &lt;/root&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The problem is I don't know how to specify the relative path %AppData% in my application.properties file. I want to use %AppData% or similar because the application will run on differents servers and I want to use the path:
  <code>C:\Users\$USERNAME\AppData\Roaming\MyFolder\log</code></p>
  
  <p>Is that possible?</p>