Created
November 29, 2013 15:34
-
-
Save fweep/7707382 to your computer and use it in GitHub Desktop.
pyramid logging example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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