[
https://issues.apache.org/jira/browse/LOG4J2-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15412659#comment-15412659
]
Remko Popma commented on LOG4J2-667:
------------------------------------
Ok, beginning to get it now. Still like to see an example. Can this handle
nested curly braces? Eg
{code}
<SomeAppender>
<!-- what's the syntax here? -->
<JsonLayout>
{"date":"%escape{%d{yyyyMmdd'T'HHmmss.SSS}{UTC}}{json}",
"message": "%escape{%m}}",
"logger": "%escape{%-20.-30c}}",
"exception": "%escape{%rEx{short}}",
...
}
</JsonLayout>
...
{code}
> Add customization for JSON Layout keys and values
> -------------------------------------------------
>
> Key: LOG4J2-667
> URL: https://issues.apache.org/jira/browse/LOG4J2-667
> Project: Log4j 2
> Issue Type: Improvement
> Reporter: Danny Sullivan
> Labels: JSON
>
> I really like the JSON Layout feature as it's easily parsed by splunk. I
> would like to see more customization on the type of information that's
> included in each json message, similar to the Pattern Layout such as MDC and
> NDC, the locations etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]