I am using Play Framework 2.4. This is a part of the default conf/logback.xml file Play 2.4
<!--
~ Copyright (C) 2009-2016 Lightbend Inc. <https://www.lightbend.com>
-->
<!-- The default logback configuration that Play uses if no other configuration is provided -->
<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${application.home}/logs/application.log</file>
<encoder>
<pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>
</encoder>
</appender>
</configuration>
You can see full version from here. My question is how exactly that ${application.home} can be resolved? I read this answer, but didn't work.
The exact situation is when I removed ${application.home} from <file></file> tag, the logs folder will be created outside (in Parallel with) the dist(play-restful-docker-1.0-SNAPSHOT) folder. (in production)
I can add the dist-name (play-restful-docker-1.0-SNAPSHOT) replacing ${application.home} and it creates logs folder inside the dist and works perfect. But it is not a good practice since it will have to be changed per every new version.