aspose file tools*
The moose likes Web Services and the fly likes incrementing log details issue when calling webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "incrementing log details issue when calling webservice" Watch "incrementing log details issue when calling webservice" New topic
Author

incrementing log details issue when calling webservice

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
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

Joined: Mar 24, 2008
Posts: 3838

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?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Arun Kumar
Ranch Hand

Joined: Oct 10, 2007
Posts: 30
calling web service n times, would log n times.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: incrementing log details issue when calling webservice