Log to a database using log4j

If you are looking for a database appender which not only works, but also supports connection pooling, is maintained and properly documented, than consider logback’s DBAppender.

Ironically enough, the warning in the javadocs about removing JDBCAppender in future versions of log4j was written by me.

Leave a Comment