[jboss-jira] [JBoss JIRA] (LOGMGR-182) support for logging complete MDC map
Jimmy Praet (JIRA)
issues at jboss.org
Fri Nov 10 09:24:01 EST 2017
[ https://issues.jboss.org/browse/LOGMGR-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jimmy Praet updated LOGMGR-182:
-------------------------------
Git Pull Request: https://github.com/jboss-logging/jboss-logmanager/pull/152
> support for logging complete MDC map
> ------------------------------------
>
> Key: LOGMGR-182
> URL: https://issues.jboss.org/browse/LOGMGR-182
> Project: JBoss Log Manager
> Issue Type: Feature Request
> Components: core
> Reporter: Jimmy Praet
>
> {noformat}
> It would be nice if the complete MDC map with all it's entries got logged if you use %X in your log pattern without specifying a key (e.g. %X{key1}).
> Similar to logback: https://logback.qos.ch/manual/layouts.html#mdc
> where it would be output as:
> key1=val1, key2=val2
> Or log4j: https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/EnhancedPatternLayout.html
> where it would be output as:
> {{key1,val1},{key2,val2}}
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list