Monday, April 4, 2005 03:26 PM
At first consideration, my suggestions would be:
Give your threads names and append .threadName onto the logger name you're getting.
If you know how many threads you're going to have and what their names will be, you can configure a separate logger for each in log4j.properties.
If you don't know how may threads you're going to have, you might consider extending the FileAppender so that it will incorporate the logger name (which you're putting your Threads' names in) into the filename.
Hope those ideas help,