You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/02/23 07:11:00 UTC
[jira] [Updated] (LOG4J2-2734) Backwards incompatible change of
JsonLayout from 2.11 to 2.12
[ https://issues.apache.org/jira/browse/LOG4J2-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers updated LOG4J2-2734:
--------------------------------
Fix Version/s: (was: 2.11.2)
2.13.1
> Backwards incompatible change of JsonLayout from 2.11 to 2.12
> -------------------------------------------------------------
>
> Key: LOG4J2-2734
> URL: https://issues.apache.org/jira/browse/LOG4J2-2734
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.12.0, 2.12.1
> Reporter: Guilherme Trein
> Priority: Major
> Fix For: 2.13.1
>
>
> I'm reporting what I believe is a regression. After updating from v2.11.2 to v2.12.1, I noticed that the JSON log entries changed for my application:
>
> Here is what I had in v2.11.2:
> {noformat}
> {
> "thread":"main",
> "level":"INFO",
> "loggerName":"com.some.Class",
> "message":"Attempting to report profile data: lastAttempted=1575645588542; now=1575647388708;",
> "endOfBatch":true,
> "loggerFqcn":"org.apache.logging.slf4j.Log4jLogger",
> "instant":{"epochSecond":1575907354,"nanoOfSecond":460000000},
> "threadId":1,
> "threadPriority":5,
> "timestamp":"2019-12-06T15:49:48.708Z"
> }
> {noformat}
> Here is what I got in v2.12.1:
> {noformat}
> {
> "logEvent": "Attempting to report profile data: lastAttempted=1575645588542; now=1575647388708;",
> "timestamp": "2019-12-06T15:49:48.708Z"
> }
> {noformat}
> I believe the offending commit is [this|https://github.com/apache/logging-log4j2/commit/e5f4479e25ce76a66b7c4af78bbbd626e2f34ac5#diff-bd20344d81d2abda071f0ccacf79895aL317]. For some reason, the implementation of AbstractJacksonLayout#toSerializable(LogEvent, Writer) changed (the method call to convertMutableToLog4jEvent was deleted).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)