RE: JDBCAppender - passing parameters to SQL statement

2003-02-27 Thread john . fairbairn
he front of PatternLayout in the config file. Sorry about that. -Original Message- From: Lutz Michael Sent: Wednesday, February 26, 2003 4:40 PM To: 'Log4J Users List' Subject: RE: JDBCAppender - passing parameters to SQL statement Here's an example, working config

Re: JDBCAppender - passing parameters to SQL statement

2003-02-27 Thread Amandeep Midha
Hi John, The problem you described is almost the saem I also faced. Apart from MDC (as key value pair per thread basis), I would like to go for custom message rendered through ObjectRenderer. We could not do enough R&D in our team, due to time-constraints upto now. Otherwise I could have managed

RE: JDBCAppender - passing parameters to SQL statement

2003-02-26 Thread Lutz Michael
Wooops, 1 minor correction. "Lgg" shouldn't be on the front of PatternLayout in the config file. Sorry about that. -Original Message- From: Lutz Michael Sent: Wednesday, February 26, 2003 4:40 PM To: 'Log4J Users List' Subject: RE: JDBCAppender - passing pa

RE: JDBCAppender - passing parameters to SQL statement

2003-02-26 Thread Lutz Michael
Here's an example, working config file that includes usage of the JDBC Appender similarly to your example. # ** log4j.rootLogger=DEBUG, myJDBC log4j.appender.myJDBC=org.apache.log4j.jdbc.JDBCAppender log4j.appender.myJDBC.URL=jdbc:microsoft:sqlserver:/