[
https://issues.apache.org/jira/browse/LOG4J2-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15411927#comment-15411927
]
Matt Sicker commented on LOG4J2-667:
------------------------------------
How about the ability to escape a pattern for use in a JSON document? That way
you could make a custom JSON layout using the PatternLayout. Such a feature
could actually be useful for LOG4J2-1442, actually.
For example, a pattern could look like:
{code}
{"message":"%jsonEscape{%m}"}
{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]