I would like to use a system var in the file name. If it is not
specified an environment var should be used as fallback.
I tried
1) fileName="${sys:valueA:-env:valueB}/foo.log"
2) fileName="${sys:valueA:-${env:valueB}}/foo.log"
3)
${env:valueB}
fileName="${sys:valueA}foo.log"
Looking at the below JIRA tickets, that is supposed to be fixed in 2.8. What
Log4j version are you using?
Please see https://issues.apache.org/jira/browse/LOG4J2-1589
https://issues.apache.org/jira/browse/LOG4J2-1243
You can try modifying
(Shameless plug) Every java main() method deserves http