This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes JDK 1.4 Logger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JDK 1.4 Logger" Watch "JDK 1.4 Logger" New topic

JDK 1.4 Logger

satish pune
Ranch Hand

Joined: Sep 04, 2003
Posts: 44
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 ,
I agree. Here's the link:
subject: JDK 1.4 Logger
jQuery in Action, 3rd edition