Dears,
Currently i'm running an web application which uses log4j for logging purposes. My application use Multi-threading concept and my log4j works fine if threads are started in sequential.
If i start multitasking then 1st thread log are logged into 2nd task thread and vice-versa. Hence the logs are mixed up.
While calling another methods of every class i'm just passing my appender as an arguments. And i am calling the appender as below in every class as required
private FileAppender appender = new FileAppender();
log.addAppender(appender);
How can i differentiate the appender log files based on task that are started in parallel.
Thanks