Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Log4j  RSS feed

 
manoj achari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all, Thanks in advance
I have a simple java program which creates multiple child threads (no.of threads depends on input string array..like if input has three string then three threads would be created)..I m using Log4j for logging , i want to create a log file in each of the thread and log its respective thread content in it , but the problem is since i m using single properties file and each time a thread created im creating a logger instance and setting the properties , i m not able to get the appropriate thread content in its respective log file
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you check this, it may be helpful for you.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!