title: How do I log an exception object with traceback in Python 3
body: <p>How can I log an exception object with its traceback in Python 3, using the standard <a href="https://docs.python.org/3/library/logging.html" rel="nofollow">logging</a> module?</p>
  
  <p>Note that the exception in question isn't necessarily the one currently being handled.</p>