On 8 Jan, 09:46, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > One question : why does the exception() method call Logger.error() rather than > Logger.exception() ?
exception() is a convenience method which adds the keyword argument exc_info=1 to append traceback information to the log. Both exception() and error() log at the ERROR level. > One suggestion : pass in a Logger object rather than a logger name to the > LoggerAdapter constructor. (this also means that users could stack > LoggerAdapter > objects if they wanted to) Done, see http://dpaste.com/30253/ Regards, Vinay -- http://mail.python.org/mailman/listinfo/python-list