This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logger used with DB

 
El Durango
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Byte!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic