A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Other Open Source Projects
customize log4j database logger
Joined: Aug 28, 2003
Jul 08, 2004 08:52:00
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
It is sorta covered in the
JavaRanch Style Guide
subject: customize log4j database logger
remove log4j appender from an API
Customize Logger Problem
Log4J Debug levels and over-riding
Create user wise Log file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014