The patch adds support for standard logging module for
DBConnection classes which is crucial for using
sqlobject in cgi scripts -- you can't use STDOUT
because it is sent to the browser.
Logging is activated if user specifies logger key, the
key also serves as a logger name to be used.
This is a duplicate of the previous ticket, only with a
file attacheed (hope so).