Skip to content

Instantly share code, notes, and snippets.

@zodman
Created June 25, 2014 16:28
Show Gist options
  • Save zodman/03d1fa39909a03fc3125 to your computer and use it in GitHub Desktop.
Save zodman/03d1fa39909a03fc3125 to your computer and use it in GitHub Desktop.
django-logging
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
'datefmt' : "%d/%b/%Y %H:%M:%S"
},
'simple': {
'format': '%(levelname)s %(message)s'
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose'
},
},
'loggers': {
#'*': {
#'handlers':['console'],
#'propagate': True,
#'level':'DEBUG',
#},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment