See my answer to a question on Stack Overflow, which has the source code for a simple handler which writes to a database using the Python DB-API 2.0:
http://stackoverflow.com/questions/935930/creating-a-logging-handler-to-connect-to-oracle/1014450#1014450 Although the question relates to Oracle, my answer is not so specific. It's not production quality code but it should get you started. Regards, Vinay Sajip -- http://mail.python.org/mailman/listinfo/python-list