Skip to content

Instantly share code, notes, and snippets.

@maplpro
Created September 21, 2010 11:42
Show Gist options
  • Save maplpro/589555 to your computer and use it in GitHub Desktop.
Save maplpro/589555 to your computer and use it in GitHub Desktop.
python stack trace
import logging
logging.basicConfig( filename = r"C:\Program Files\Quest Software\Site Administrator for SharePoint\SharePoint Information Portal\iis\test.log", level = logging.INFO )
log = logging.info
import isapi_wsgi
try:
import django.core.handlers.wsgi
except Exception,e:
import traceback
log( traceback.format_exc() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment