On Thursday, March 20, 2003, at 07:17 PM, Scott Deboy wrote:

<snip>

LoggingEvent has too much baggage - ThrowableInfo, LocationInfo - why aren't these just properties of the event? That would fit better with other languages that don't support throwables or provide an equivalent to LocationInfo. These definitely shouldn't be in the DTD!

IMHO that depends on the object -> xml mapping.


it is possible to structure the DTD so it's extensible by mapping optional (typically language specific) features to generic elements.

for example, you could use something like:

<param type='location-info'>
    <param type='classname'>org.apache.foo.bar</param>
    <param type='line-number'>21</param>
</param>

to record the location information. applications processing the xml could then ignore anything they did not understand.

- robert


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to