Improve default django logging settings

Start with this for now, we can improve it further down the road.

Change-Id: Ia137f961e397369c73161c7db9a719d1447e3652
This commit is contained in:
David Moreau Simard 2018-06-19 16:31:00 -04:00
parent 44d108cbbd
commit fdbc4e04ac
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
1 changed files with 15 additions and 0 deletions

View File

@ -103,9 +103,24 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'www', 'media')
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'normal': {
'format': '%(asctime)s %(levelname)s %(name)s: %(message)s'
}
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'normal',
'level': env('DJANGO_LOG_LEVEL', default='INFO'),
'stream': sys.stdout
}
},
'loggers': {
'ara': {
'handlers': ['console'],
'level': env('DJANGO_LOG_LEVEL', default='INFO'),
'propagate': 0
}
},
'root': {