Bug 43077 - XSLTLayout
Summary: XSLTLayout
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Layout (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
Depends on:
Reported: 2007-08-09 14:38 UTC by Curt Arnold
Modified: 2007-08-09 14:40 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2007-08-09 14:38:44 UTC
Add an XSLTLayout to the extras companion.  The existing XMLLayout will fail to produce valid XML when 
logger names, thread names or other fields contain quotes, ampersands, less thans, etc.  The XSLTLayout 
uses the javax.xml.transforms package to create an Transformer that is used to serialize logging events 
into a format compatible with XMLLayout or transformed into any arbitrary XML, HTML or text format.  The 
XSLTLayout should correctly handle the problematic characters previously mentioned and can be used as a 
replacement for XMLLayout.
Comment 1 Curt Arnold 2007-08-09 14:40:08 UTC
Committed in rev 564393.