How about, if each <log4j:event> record comes with a version attribute? The inconvenience with this is that the version information is usually required just once and having the version attribute in each record is highly redundant.
An alternative solution is to add a version attribute in the <log4j:eventSet> element in *log4j.dtd*, document this attribute in XMLLayout javadoc and let the user fill it out for her data. <?xml version="1.0" ?> <!DOCTYPE log4j:eventSet SYSTEM "log4j.dtd" [<!ENTITY data SYSTEM "abc">]> <log4j:eventSet version="1.2" xmlns:log4j="http://jakarta.apache.org/log4j/"> &data; </log4j:eventSet> This requires a little work by the user. Moreover, the approach can be applied to earlier data generated by log4j 1.2c1 and earlier. The user would then write: <log4j:eventSet version="1.1" xmlns:log4j="http://jakarta.apache.org/log4j/"> &data; </log4j:eventSet> I suggest we go for the latter solution(version attrib in log4j:eventSet). Any comments? At 07:39 26.04.2002 +1000, Oliver wrote: >It is a good idea. Just be aware that it may break Chainsaw being able >to load the throwable information. This will most likely be the case >for other people who have written tools to load it. > >I will fix Chainsaw to work, I would like to be backwards compatible >so people can load both the old format, and the new one. Pity there >is not version information in the XML file so Chainsaw would know >how to handle the throwable information. > >Oliver -- Ceki -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>