Afternoon Guys, 

 

I'm currently logging exceptions within my applications like so:

 

try:

    #do something....

except Exception, error:

    # Log the exception.

    self.logger.error("Exception Occurred: (%s)" % str(error))

 

This is quite fine, however, sometimes I get very vague error message thrown
at me which don't help a great deal. How can I log the full exception and
backtrace as if it were thrown to stderr and I wasn't catching it?

 

Cheers all,

 

Heston

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to