Spidertracks/logglylog4j — pull request #3 by jbcpollak (2011-10-22 10:12:51+00:00)
Title: Graceful shutdown and lossless emptying of queue

Hi,

Here is a re-publish of my changes. I think its more coherent now. It does the following:

- Gracefully shuts down hsql db
- Gracefully shuts down the HttpPost thread, allowing the thread to empty the hsql queue before exiting.
- Added logging using LogLog.debug()
- fixes minor type in readme.md

There is still a funkiness if you reconfigure Log4J (which restarts the appender) and write to it at the same time, it looks like Log4J might not be threadsafe in that area, so you can get an hsql exception trying to write to the database while it is shutting down. Thats probably not a normal usecase though, so I its probably not a big deal.