Using Properties in Log4J2 YAML
问题 I am trying to use properties in a log4j2.yaml. The equivalent XML is this. <Configuration> <Properties> <Property name="log-path">logs</Property> <Property name="archive">${log-path}/archive</Property> </Properties> <Appenders> . . . I tried this. Configutation: name: Default properties: property: name: log-path value: "logs" name: archive value: ${log-path}/archive Appenders: But the properties are not getting picked. For example, the following code creates a ${log-path} folder to store a