Our standard log4j2.xml files for our application include a configuration-time property
<Properties>
<Property name="log-path">/some/writable/path/on/server</Property>
</Properties>
And then referenced in the appenders. Works fine so far.
I need to get the value of this property, which is not known at compile time, and not even guaranteed to be defined, at runtime.
From some facility, I need to get the "log-path" property if it's defined. Otherwise null is a great return value.
How can I accomplish this task?