[
https://issues.apache.org/jira/browse/LOG4J2-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralph Goers updated LOG4J2-3042:
--------------------------------
Description: JsonTemplateLayout supports specifying a pattern to format the
message. Other Layouts also support using a PatternSelector to select the
pattern to use based on something in the log event. JsonTemplateLayout should
also support this. Since the PatternSelector is a Plugin a suggestion might be
to allow the PatternSelector to be defined in log4j2.xml and then reference it
if one is defined instead of using a pattern in the template. (was:
JsonTemplateLayout supports specifying a pattern to format the message. Other
Layouts also support using a PatternSelector to select the pattern to use based
on something in the log event. JsonTemplateLayout should also support this.)
> Allow JsonTemplateLayout to use a PatternSelector to format the message.
> ------------------------------------------------------------------------
>
> Key: LOG4J2-3042
> URL: https://issues.apache.org/jira/browse/LOG4J2-3042
> Project: Log4j 2
> Issue Type: Improvement
> Components: JsonTemplateLayout
> Affects Versions: 2.14.1
> Reporter: Ralph Goers
> Priority: Major
>
> JsonTemplateLayout supports specifying a pattern to format the message. Other
> Layouts also support using a PatternSelector to select the pattern to use
> based on something in the log event. JsonTemplateLayout should also support
> this. Since the PatternSelector is a Plugin a suggestion might be to allow
> the PatternSelector to be defined in log4j2.xml and then reference it if one
> is defined instead of using a pattern in the template.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)