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
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: 3775

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.
 
Consider Paul's rocket mass heater.
 
subject: incrementing log details issue when calling webservice
 
Similar Threads
Issue of printing multiple lines in log file
How to show error messages on the form that are coming from the constructors
Log4j will not write to log file.
Mockit problem for JPA
Help Please -log4j:WARN No appenders could be found for logger