You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "sunshaowei (Jira)" <ji...@apache.org> on 2021/01/26 08:07:00 UTC

[jira] [Updated] (LOG4J2-3005) log4j无法正确解析带{}的日志报文

     [ https://issues.apache.org/jira/browse/LOG4J2-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

sunshaowei updated LOG4J2-3005:
-------------------------------
    Description: 
输入的格式格式为 \{"id":"123","name":{}}的字符串,如果{}中的内容为空,则会在方法org.apache.logging.log4j.core.config.LoggerConfig#log(java.lang.String, java.lang.String, org.apache.logging.log4j.Marker, org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message, java.lang.Throwable)中被填充为

 \{"id":"123","name":{id=123, name={}}}

  was:输入的格式格式为 \{"123":"123","abc":{}}的字符串,如果{}中的内容为空,则会在方法org.apache.logging.log4j.core.config.LoggerConfig#log(java.lang.String, java.lang.String, org.apache.logging.log4j.Marker, org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message, java.lang.Throwable)中被填充为\{"123":"123","abc":{{"123":"123","abc":{}}}}


> log4j无法正确解析带{}的日志报文
> -------------------
>
>                 Key: LOG4J2-3005
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3005
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.13.2
>            Reporter: sunshaowei
>            Priority: Major
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> 输入的格式格式为 \{"id":"123","name":{}}的字符串,如果{}中的内容为空,则会在方法org.apache.logging.log4j.core.config.LoggerConfig#log(java.lang.String, java.lang.String, org.apache.logging.log4j.Marker, org.apache.logging.log4j.Level, org.apache.logging.log4j.message.Message, java.lang.Throwable)中被填充为
>  \{"id":"123","name":{id=123, name={}}}



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