Skip to content

Instantly share code, notes, and snippets.

@adamserafini
Created January 28, 2014 15:37
Show Gist options
  • Save adamserafini/9566a94cdbddae204f74 to your computer and use it in GitHub Desktop.
Save adamserafini/9566a94cdbddae204f74 to your computer and use it in GitHub Desktop.
Django logging conf example
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
},
'simple': {
'format': '%(levelname)s %(message)s'
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'simple'
},
},
'django': {
'handlers': ['console'],
'level': 'DEBUG',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment