Added default logger handler and made coloredlogs optional

This commit is contained in:
Ilan Steemers
2015-06-26 18:07:44 +02:00
parent f08773f37d
commit 8c4f0110fb
4 changed files with 35 additions and 4 deletions
+15
View File
@@ -81,6 +81,21 @@ USE_L10N = True
USE_TZ = True
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django_q': {
'handlers': ['console'],
'level': 'INFO',
},
},
}
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/