old_contents: import sys, logging, os
  from raygun4py import raygunprovider
  
  logger = logging.getLogger("mylogger")
  
  rgHandler = raygunprovider.RaygunHandler("paste_your_api_key_here")
  
  logger.addHandler(rgHandler)
  
  def log_exception(exc_type, exc_value, exc_traceback):
      print "Logging: %s" % exc_value
      logger.error("A python error occurred", exc_info = (exc_type, exc_value, exc_traceback))
  
  sys.excepthook = log_exception
  
  def firstMethod():
  	secondMethod()
  
  def secondMethod():
  	raise StandardError("Test exception sent via built-in handler")	
  
  firstMethod()
new_contents: import sys, logging, os
  from raygun4py import raygunprovider
  
  logger = logging.getLogger("mylogger")
  
  rgHandler = raygunprovider.RaygunHandler("paste_your_api_key_here")
  
  logger.addHandler(rgHandler)
  
  def log_exception(exc_type, exc_value, exc_traceback):
      logger.error("A python error occurred", exc_info = (exc_type, exc_value, exc_traceback))
      print "Logging: %s" % exc_value
  
  sys.excepthook = log_exception
  
  def buggyMethod():
      raise StandardError("Test exception sent via built-in handler")
  
  buggyMethod()
subject: Clarify logging sample