You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2022/01/28 08:02:00 UTC
[jira] [Work started] (LOG4J2-3367) Issue with log4j-layout-template-json pattern resolver
[ https://issues.apache.org/jira/browse/LOG4J2-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on LOG4J2-3367 started by Volkan Yazici.
---------------------------------------------
> 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.1, 2.17.0
> Reporter: Mateusz Tumidajewicz
> Assignee: Volkan Yazici
> Priority: Minor
>
> 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)