aspose file tools
The moose likes Other Open Source Projects and the fly likes log4j JDBC appender Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "log4j JDBC appender" Watch "log4j JDBC appender" New topic
Author

log4j JDBC appender

smitha rai
Ranch Hand

Joined: Aug 15, 2001
Posts: 33
Hi Gurus,

I am trying to log the error message generated by a java code into the database using log4j. If someone has a sample java code and log4j configuration parameters, appreciate if you could provide the same.

Regards,

Smitha
Jagadeesh Kumar Macherla
Greenhorn

Joined: Jan 12, 2005
Posts: 4
Please check this url
http://www.dankomannhaupt.de/projects/
emm raha
Ranch Hand

Joined: Mar 18, 2003
Posts: 57
Sample log4j.properties, to log to MS SQL Server using JTDS database driver:



Instantiate and use as usual:

[ January 17, 2005: Message edited by: emm raha ]
 
 
subject: log4j JDBC appender
 
Threads others viewed
how to log errors occurred in backend java engine or servlet
error when i run log file
Debugging Best Practices??
Performance and Scalability
how to stop printing log in console?
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture