I want to use a .properties files's value in a log4j2.xml file.
But log4j2.xml cant use bean element, the follow way is wrong
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config.properties</value>
<value>classpath:database.properties</value>
</list>
</property>
</bean>
Is there any way to load a .properties file in a log4j.xml?