wood burning stoves 2.0*
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


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
 
GeeCON Prague 2014
 
subject: Setting values using jdbc appender log4j