Skip to content

Instantly share code, notes, and snippets.

@fweep
Created November 29, 2013 15:34
Show Gist options
  • Save fweep/7707382 to your computer and use it in GitHub Desktop.
Save fweep/7707382 to your computer and use it in GitHub Desktop.
pyramid logging example
#!/usr/bin/env python
from pyramid.paster import bootstrap
stuff = bootstrap("development.ini")
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
log.warn("warn message")
log.info("info message")
log.debug("debug message")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment