I am using http://logback.qos.ch/
I start my Java process with a parameter, for example, -Dproperties.url=myappproperties-production.propertiesor -Dproperties.url=myappproperties-development.properties, depending on the environment in which it is running.
Problem: how do I login to pick up my properties file?
If the name of the properties file is static, I would do ( works fine ):
<configuration>
<property resource="myappproperties-development.properties" />
(...)
</configuration>
But I need something dynamic ( this does not work ):
<configuration>
<property resource="${properties.url}" />
(...)
</configuration>
source
share