[jdom-interest] Implementing and idea...

Tasso Angelidis TassoA at trustmarque.ca
Thu Aug 9 12:12:42 PDT 2001


I have a servlet...

The servlet accepts incoming requests, does some DB work then sends back the
response.

I want to log all exceptions and few messages if such and such process was
successfull to XML file then of course when read, using XSL format the data
nicely.

What would be the best way to do this with out taking up to much resources
from the servlet or slowing down the servlet or server in any way. 

I thought of every time an exception happens open the log.xml file add the
necessary nodes and output the file back. Problem with this is that
eventually the file will get just to big.Maybe split the log to a daily
bassis?? Any other ways?? Also is JDOM ad XMLOutputter thread safe. What if
2 threads catch an error and have to write to the log??



More information about the jdom-interest mailing list