Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Threads logging to different file Appender

Status
Not open for further replies.

hDepotRacing20

Programmer
Feb 14, 2006
3
0
0
US
Have an application where the number of threads that get launched are dynamic. Could be anywhere from 1 to 300 threads that could get launched at runtime. I would like to know if it is possible to setup a file appender for each thread and have the indiv threads write to their own file appender. Currently all threads write to one log file using 1 file appender in a log4j.properties file but would like ability for each thread to log its own messages for easier debugging. Any good sites or source would be great. Any help would be appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top