On Apr 27, 2005, at 12:35 PM, Dave Pawson wrote:
Basic requirement. To enable the selection of any existing formatting option and add it to the XML output, using my own specified elements or attributes.
E.g. %L # Linenumber
Somewhere I'd like to be able to say I want the linenumber, I'd like it output as <ln>64</ln>
or
%F, filename
I want <fname ln="{%L}">myfile.java</fname>
That level of flexibility, which is an xml view of what I can do with the text properties file.
Am I making sense?
Okay, I wanted to make sure that you wanted what I think that I would want in that situation.
If I were to add that, my initial approach would be to add a new layout (say XSLTLayout) that would use the javax.xml.transform API's (present in JDK 1.4, not sure when introduced). The transform would be fired once for each LoggingEvent.
One of the items on my to-do list is to improve the JoranConfigurator's configurators handling of foreign namespaces within a configuration file. The XSLTLayout would likely be a very practical test whether I got that right. What I envision would be to embed the XSLT transform within the XML configuration for the XSLTLayout.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
