Link to home
Start Free TrialLog in
Avatar of sshah_tea
sshah_tea

asked on

different log4j file for multiple threads

I need to create a different log4j file for each thread in a process. I want to read the configuration from one file and than change just the file name for each thread.

E.g. Process A  reads loads log4j properties file, the logfile name is processA.log

Process A now spawns 3 new threads, I want each thread to keep the same log4j confiiguation  (i.e. log level, file size etc.) and just change the names to processA_thread1.log, processA_thread2.log et.c

Thanks
ASKER CERTIFIED SOLUTION
Avatar of muktajindal
muktajindal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sshah_tea
sshah_tea

ASKER

perfect!! it worked!!

thanks