Register / Login
Win a copy of
Murach's Python Programming
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Other Open Source Projects
customize log4j database logger
posted 12 years ago
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
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
Boost this thread!
remove log4j appender from an API
Log4J Debug levels and over-riding
Customize Logger Problem
Create user wise Log file.