Re: PatternLayout extensions & Log4j JDBCAppender

2002-06-06 Thread Ceki Gülcü
There is an example in examples/ directory. Adding a new conversion character is indeed a natural continuation of your current approach which I must say is ill advised. Escaping quotes is one issue that PreparedStatements solve trivially. PreparedStatements are a mandatory part of the JDBC spec w

PatternLayout extensions & Log4j JDBCAppender

2002-06-06 Thread Kevin Steppe
After digging into the throwable info in a JDBCAppender a littler here is my current idea: Use an extension to the PatternLayout, which can convert the throwable into a single string (with colons, or \n, or whatever in between). This new conversion character code then be placed in the normal