Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDK 1.4 Logger

 
satish pune
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ,
I am trying to use JDK1.4 logger in my application

I have configured a servlet.
Here is code from the servlet :


In my application code : here is what I have written :



The problem that I am facing is :
Though I am able to successfully log :
The log file seems to be increasing : the number of times that logging is happening is not correct :

What I have observed is the first time : log works fine and I get one entry in the file

On invoking the same class ( which makes the call to log )
I see the previous log entry + two more = Total = 3

Again if I invoke : I get : Previous 3 + New 4 = Total 7

Looks like some how the logger is maintaining the log data and appending it to the file

I am not very familiar with the Logging API

Could anyone help please ?

Thanks in advance ,
-satish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic