[ 
https://issues.apache.org/jira/browse/LOG4J2-2652?focusedWorklogId=384973&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-384973
 ]

ASF GitHub Bot logged work on LOG4J2-2652:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Feb/20 04:56
            Start Date: 11/Feb/20 04:56
    Worklog Time Spent: 10m 
      Work Description: rgoers commented on pull request #307: [LOG4J2-2652] 
JSON output wrong when using additonal fields
URL: https://github.com/apache/logging-log4j2/pull/307
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 384973)
    Time Spent: 50m  (was: 40m)

> JSON output wrong when using additonal fields
> ---------------------------------------------
>
>                 Key: LOG4J2-2652
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2652
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>    Affects Versions: 2.12.0
>            Reporter: Andreas Winter
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When using additional fields in the JsonLayout the output is something like
> {"logEvent":"File not found","source":"BIG","timestamp":"07-09-2019"}
> instead of the full JSON string as of version 2.10 (where everything works as 
> expected).
> Config used:
> {{<?{color:#0000ff}xml version{color}{color:#008000}="1.0" 
> {color}{color:#0000ff}encoding{color}{color:#008000}="UTF-8"{color}?>
> <{color:#000080}Configuration{color}>}}
> {{  <{color:#000080}Appenders{color}>}}
> {{    <{color:#000080}Console 
> {color}{color:#0000ff}name{color}{color:#008000}="CONSOLE"{color}>}}
> {{      <{color:#000080}JsonLayout 
> {color}{color:#0000ff}complete{color}{color:#008000}="false" 
> {color}{color:#0000ff}compact{color}{color:#008000}="true" 
> {color}{color:#0000ff}eventEol{color}{color:#008000}="true"      
> {color}{color:#0000ff}stacktraceAsString{color}{color:#008000}="true"{color}>}}
> {{        <{color:#000080}KeyValuePair 
> {color}{color:#0000ff}key{color}{color:#008000}="source" 
> {color}{color:#0000ff}value{color}{color:#008000}="BIG"{color}/>}}
> {{        <{color:#000080}KeyValuePair 
> {color}{color:#0000ff}key{color}{color:#008000}="timestamp" 
> {color}{color:#0000ff}value{color}{color:#008000}="$${date:MM-dd-yyyy}"{color}/>}}
> {{      </{color:#000080}JsonLayout{color}>}}
> {{     </{color:#000080}Console{color}>}}
> {{   </{color:#000080}Appenders{color}>}}
> {{   <{color:#000080}Loggers{color}>}}
> {{     <{color:#000080}Root 
> {color}{color:#0000ff}level{color}{color:#008000}="info"{color}>}}
> {{       <{color:#000080}AppenderRef 
> {color}{color:#0000ff}ref{color}{color:#008000}="CONSOLE"{color}/>}}
> {{     </{color:#000080}Root{color}>}}
> {{   </{color:#000080}Loggers{color}>}}
> {{</{color:#000080}Configuration{color}>}}



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

Reply via email to