Development time logging configuration

This commit is contained in:
Raphael Michel
2015-03-15 17:34:00 +01:00
parent a67e09215b
commit 797c1f4205

View File

@@ -167,6 +167,31 @@ MESSAGE_TAGS = {
messages.SUCCESS: 'alert-success',
}
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'default': {
'format': '%(levelname)s %(asctime)s %(module)s %(message)s'
},
},
'handlers': {
'console': {
'level': 'INFO',
'class': 'logging.StreamHandler',
'formatter': 'default'
},
},
'loggers': {
'': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': True,
},
},
}
try:
from local_settings import * # NOQA
except ImportError: