title: How do I log an exception at warning- or info-level with traceback using the python logging framework?
body: <p>Using something like this:</p>
  
  <pre><code>try:
     # Something...
  except Exception as excep:
     logger = logging.getLogger("component")
     logger.warning("something raised an exception: " + excep)
     logger.info("something raised an exception: " + excep)
  </code></pre>
  
  <p>I would rather not have it on the error-level cause in my special case it is not an error.</p>