File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

incrementing log details issue when calling webservice

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

I have a java file with web service method. In that method i have written the code for logs. But the log detail is getting stored properly when i invoke the web service once. for second time, every detail is getting stored in logs twice... similarly for the n times , the details are getting logged n times..

Please find the code i have used.


Please help me to solve this issue. If i use write appender, the file is getting overwritten.

Thanks.
 
Vijitha Kumara
Bartender
Posts: 3909
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for second time, every detail is getting stored in logs twice..


You log these statements inside the method so they get logged every time you invoke the method. Am I missing something?
 
Arun Kumar
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
calling web service n times, would log n times.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic