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
Bartender
Joined: May 31, 2011
Posts: 1776
posted
0
Try removing appenders....
preethi Ayyappan
Ranch Hand
Joined: Oct 04, 2007
Posts: 518
posted
0
Thanks for your reply. I will try this
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Issue of printing multiple lines in log file