Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created October 13, 2011 19:16
Show Gist options
  • Save andymckay/1285217 to your computer and use it in GitHub Desktop.
Save andymckay/1285217 to your computer and use it in GitHub Desktop.
LOGGING = {
'loggers': {
'django.pylibmc': {
'level': 'DEBUG',
'handlers': ['console'],
},
},
}
...
import logging
log = logging.getLogger('django.pylibmc')
log.debug('foo! *****')
12:15:48 django.pylibmc:DEBUG foo! ***** :/Users/andy/sandboxes/zamboni/apps/amo/middleware.py:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment