import sys fsock = open('error.log', 'w') sys.stderr = fsock raise Exception, 'this error will be logged'
Name (required)
email (will not be published) (required)
Website