Bug 43077 - XSLTLayout
XSLTLayout
Status: RESOLVED FIXED
Product: Log4j
Classification: Unclassified
Component: Layout
unspecified
Other other
: P2 normal
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-08-09 14:38 UTC by Curt Arnold
Modified: 2007-08-09 14:40 UTC (History)
0 users



Attachments

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.