posted 20 years ago
In the past, I have written an appender that logs to a database. The one included with Log4j has several bugs and a major problem in that it does not support JNDI.
Using a database appender has several advantages. First, it solves the problem of having log files on different machines. Second, it makes searching and evaluating the logs really easy since you can use standard SQL to filter and locate messages.
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1590591259/ref=jranch-20" target="_blank" rel="nofollow">Enterprise Java Development on a Budget</a>