File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Logger used with DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Logger used with DB" Watch "Logger used with DB" New topic

Logger used with DB

El Durango

Joined: Oct 09, 2003
Posts: 23
Hi I want to have my application support logging, and I have been looking at the java logging package. Now from reading through it, if you want to log to a certain areas such as the console, a file or whatever you will need to call a handler that has support for these such as consoleLogger or fileLogger. Now if I wanted to log into a Database, do I just have to extend the Handler class and overwrite the methods or is there a premade handler for that.
Does anyone have any info/idea on this??
thank you.
Zkr Ryz
Ranch Hand

Joined: Jan 04, 2001
Posts: 187
There's an article on this. Look into the Java Developers Journal magazine the volume 7 issue 3 the article is named "Extending the J2SE 1.4 Logging package " and it explains excactly what you want.
I agree. Here's the link:
subject: Logger used with DB
It's not a secret anymore!