Mateusz Tumidajewicz created LOG4J2-3367:
--------------------------------------------

             Summary: Issue with log4j-layout-template-json pattern resolver
                 Key: LOG4J2-3367
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3367
             Project: Log4j 2
          Issue Type: Bug
          Components: JsonTemplateLayout
    Affects Versions: 2.17.0, 2.17.1
            Reporter: Mateusz Tumidajewicz


After upgrade to 2.17.1 my template stopped working as expected:

part of template.json definition of service.name property
{code:java}
"service": {
  "name": {
    "$resolver": "pattern",
    "pattern": "${serviceName}",
    "stackTraceEnabled": false
  } {code}
part of log4j2.xml definition of serviceName property

 

 
{code:java}
<Properties>
  <Property 
name="serviceName">${bundle:META-INF/build-info:build.artifact}</Property>
</Properties>{code}
Before upgrade each log contained build.artifact value from 
META-INF/build-info.properties file. Now it contains only 
"${bundle:META-INF/build-info:build.artifact}"

It worked up to 2.16.0

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to