• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue of printing multiple lines in log file

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using log4j to log the details. when the program is invoked first, the log is getting updated only once in log file. If the program is invoked second time, every lines mentioned in my program to print in log is getting printed 2 times. It goes on every time when i invoke the application. I have used the following code to log the details:



Please help to solve this issue.

Thanks
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try removing appenders....

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I will try this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic