• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting values using jdbc appender log4j

 
smitha rai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic