File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Setting values using jdbc appender log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Setting values using jdbc appender log4j" Watch "Setting values using jdbc appender log4j" New topic
Author

Setting values using jdbc appender log4j

smitha rai
Ranch Hand

Joined: Aug 15, 2001
Posts: 33
Hi,

Is there any sample java code that would set the values (val1, val2, val3). I am using following in my log4j configuration file.

log4j.appender.R5.layout.ConversionPattern=INSERT INTO Logs (Date, val1, Val2, val3) VALUES ('%d', 'val1', 'val2', 'val3')

Thanks,

Smitha
 
jQuery in Action, 2nd edition
 
subject: Setting values using jdbc appender log4j
 
Similar Threads
Column count doesn't match value count at row 1
c:if tag
Duplicate entries in request.getParameter() --- URGENT
Struts ActionMessage not displaying multiple dynamic values
Object creation using dynamic values stored in local variables