Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.12.1
-
None
-
None
Description
current variableResolverPrefix=${ and variableResolverSuffix=}
There will be a issue if the variable default value has "}"
ie :
```
${env:logStdoutPattern:-%d
%-5p %c
{20}:%L - %m%n}```
if we change the variableResolverPrefix, that will solve the problem
```log4j2.proprties
variableResolverPrefix=$(
variableResolverSuffix=)
appender.console.layout.pattern=$(env:logStdoutPattern:-%d{yyyyMMddHH:mm:ss} %-5p %c{20}
:%L - %m%n)
```
ref PR: https://github.com/apache/logging-log4j2/pull/312