title: How to define log4j2 path by application.properties?
body: <p>I want to have different <code>log4j2</code> log directories based on the current active profile. But it does not work.</p>
  
  <pre><code>#application.properties:
  spring.profiles.active=dev
  log.path=d:/${spring.profiles.active}
  
  #log4j2.xml:
  &lt;Properties&gt;
    &lt;property name="path"&gt;${bundle:application:log.path}&lt;/property&gt;
  &lt;/Properties&gt;
  </code></pre>
  
  <p>Result: a folder is created on d:/ called <code>${spring.profiles.active}</code> instead of resolving to the real spring profile name. Why?</p>