I am working on a java services which handles multiple requests at a time. I'm using log4j without any extra configuration. So basically all the logs are going to the same file so it is very difficult to debug any issue regarding a particular request.
I still want all the logs in the same file(i'll use DailyRollingFileAppender to make my life easier) but I want the logs in a way that all the logs from a thread should be appended at once. With that arrangement I can find the logs for a request at one place.
So what should be done in order to achieve this.
Thanks