Forums Register Login

logging parallel threads

+Pie Number of slices to send: Send
Hi

I want to create a log file in an xml format. I want to know that if there are many parallel threads updating(insert, edit, delete) in this file, can we ensure the integrity of the structure of the xml file? Can we use log4j for this?
+Pie Number of slices to send: Send
Of course. Have the logging done by a single object, which all of the threads use, and have the logging done in a synchronized method.
+Pie Number of slices to send: Send
Thanks for the answer. Is it possible to have a custom structure for this xml log file using log4j?
These are the worst of times and these are the best of times. And this is the best tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 762 times.
Similar Threads
Multi-Core Vs. Single-Core (For the serious Java Archs)
SQL Query formation problem.
Updating a xml file inside a jar file
does join method hinders performance
Can I read a file chunks in parallel?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:12:42.