You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2003/03/22 11:40:21 UTC
DO NOT REPLY [Bug 18246] New: -
Patch: Add more MDC support to XMLLayout and PatternLayout
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18246>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18246
Patch: Add more MDC support to XMLLayout and PatternLayout
Summary: Patch: Add more MDC support to XMLLayout and
PatternLayout
Product: Log4j
Version: 1.3alpha
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Other
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: paul.smith@lawlex.com.au
The attached zip file contains some patch files, and some additional files
which extend some classes to support, or to extend support for MDC.
General Changes:
* XMLLayout now includes any MDC details by encoding in CDATA sections MDC
Key/Value pairs.
* PatternLayout - the %X option used to require a secondary option to indicate
which key to output. This option is now no longer required, and if not
specified, then ALL the MDC Key/Value pairs are output using a format similar
to Hashtable.toString( e.g."{{key1,val1},{key2,val2}}")
Notes:
======
* The patch-dtd-mdcextensions.txt patches the log4j.dtd to allow an log4j:event
to include MDC details. This DTD change may not be entirely the way we want to
go, and I would appreciate someone with XML experience looking over it a bit
more thoroughly as I was not able to test the change as much as I would like.
* patch-src-*.txt - patches XMLLayout, PatternParser, and PatternLayout to
enable MDC to appear, or to provide additional support.
* patch-test-*.txt - patches some Test case files to validate the source changes
* pattern.mdc.1.properties - a tests/input property file to configure a Test
case
* patternLayout.mdc.1 - witness file for the PatternLayout change & test cases
* xmlLayout.mdc.* - witness files for the XMLLayout change & test cases
* Chainsaw has _NOT_ been modified to read in the MDC details from a standalone
XML file. My home computer was having a Blue Screen of Death everytime
Chainsaw started up, so I was not able to even start on that change. Hope to
address that @ work during the week.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org