Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3367

Issue with log4j-layout-template-json pattern resolver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • 2.17.1, 2.17.0
    • None
    • JsonTemplateLayout
    • None

    Description

      After upgrade to 2.17.1 my template stopped working as expected:

      part of template.json definition of service.name property

      "service": {
        "name": {
          "$resolver": "pattern",
          "pattern": "${serviceName}",
          "stackTraceEnabled": false
        } 

      part of log4j2.xml definition of serviceName property

      <Properties>
        <Property name="serviceName">${bundle:META-INF/build-info:build.artifact}</Property>
      </Properties>

      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

       

      Attachments

        Activity

          People

            vy Volkan Yazici
            matejko219 Mateusz Tumidajewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: