This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes customize log4j database 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 "customize log4j database logger" Watch "customize log4j database logger" New topic
Author

customize log4j database logger

Bruce Dempsey
Greenhorn

Joined: Aug 28, 2003
Posts: 6
Hi,

I am very new to the log4j package. Does anyone know how to customize the log4j property so that I can have additional columns in my log table and pass in values from my Java code? Is there any documentation out there on this?

log4j.appender.A1.sql=INSERT INTO LOG (Date, Logger, Priority, Message) VALUES ('%d', '%c', '%p', '%m')

this is the default in the examples I've seen but I really need to customize this.

Any help is greatly apprecited

Bruce :-)
 
 
subject: customize log4j database logger