Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created August 27, 2008 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jugyo/7445 to your computer and use it in GitHub Desktop.
Save jugyo/7445 to your computer and use it in GitHub Desktop.
logging
import logging
...
logging.debug('debug message')
...
def main():
logging.getLogger().setLevel(logging.DEBUG)
application = webapp.WSGIApplication(
[
('/', MainaApp),
],
debug=True)
wsgiref.handlers.CGIHandler().run(application)
if __name__ == "__name__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment