Of course, the contains check always returned false since the receiver reconstructs the loggingevent from the xml representation and LoggingEvent doesn't implement equals.
I worked around it by storing a hashset of the event's ID in the model. Duplicates show up if the events were loaded from xml or over the wire from jdk1.4 logging.
What is the event's ID?
What is a *hashset* of the event's ID?
Scott
-- Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]