You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2017/05/16 06:14:04 UTC
[jira] [Comment Edited] (LOG4J2-1866) Add default value to
MdcPatternConverter
[ https://issues.apache.org/jira/browse/LOG4J2-1866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16011805#comment-16011805 ]
Gary Gregory edited comment on LOG4J2-1866 at 5/16/17 6:13 AM:
---------------------------------------------------------------
[~ralph.goers@dslextreme.com]: Are you OK with the config format in the patch and the patch itself?
Thank you,
Gary
was (Author: garydgregory):
[~ralph.goers@dslextreme.com]: Are you OK with the config format and the patch?
Thank you,
Gary
> Add default value to MdcPatternConverter
> -----------------------------------------
>
> Key: LOG4J2-1866
> URL: https://issues.apache.org/jira/browse/LOG4J2-1866
> Project: Log4j 2
> Issue Type: Bug
> Components: Pattern Converters
> Affects Versions: 2.8.2
> Reporter: Izek Greenfield
> Labels: converter, mdc, pattern
> Attachments: Add_default_value_to_MDC_converter.patch, Add_documentation_.patch
>
>
> When using %X in a pattern I can't define default value if the value does not exist in MDC.
> I will be great to be able to define one like:
> {code:title=pattern|borderStyle=solid}
> %X{key}{hello}
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)