qxo created LOG4J2-2722:
---------------------------

             Summary: log4j2 config variableResolver Prefix and Suffix should 
configable
                 Key: LOG4J2-2722
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2722
             Project: Log4j 2
          Issue Type: Improvement
          Components: Configurators
    Affects Versions: 2.12.1
            Reporter: qxo


current variableResolverPrefix=${  and variableResolverSuffix=}
There will be a issue if the variable default value has "}" 
ie :
```
${env:logStdoutPattern:-%d{yyyyMMddHH:mm:ss} %-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





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to