How can I log my Python exceptions?
try: do_something() except: # How can I log my exception here, complete with its traceback?