rm5248 commented on code in PR #207:
URL: https://github.com/apache/logging-log4cxx/pull/207#discussion_r1177262438
##########
src/main/include/log4cxx/patternlayout.h:
##########
@@ -224,14 +224,22 @@ LOG4CXX_LIST_DEF(FormattingInfoList,
log4cxx::pattern::FormattingInfoPtr);
* <td align="center"><strong>X</strong></td>
* <td>
* Used to output the MDC (mapped diagnostic context) associated with
the thread that
- * generated the logging event. The <strong>X</strong> conversion
character <em>must</em> be
- * followed by the key for the map placed between braces, as in
<strong>%X{clientNumber}</strong>
- * where <code>clientNumber</code> is the key. The value in the MDC
corresponding to
+ * generated the logging event. All key/value pairs are output, each
inside <strong>{}</strong> unless
+ * the <strong>X</strong> is followed by a key placed between braces,
as in <strong>%X{clientNumber}</strong>
+ * where <code>clientNumber</code> is the key. In this case the value
in the MDC corresponding to
* the key will be output.
* <p>See MDC class for more details.</p>
* </td>
* </tr>
* <tr>
+ * <td align="center"><strong>J</strong></td>
+ * <td>
+ * Used to output JASON key/value pairs of all MDC (mapped diagnostic
context)
Review Comment:
I've never seen it as JASON, only as JSON - is there some acronym that I'm
missing?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]