Commit 6019ae5c authored by Luko van der Maas's avatar Luko van der Maas Committed by Sébastiaan Versteeg

Merge branch '956-957improve-logging' into 'master'

Add root logging configuration and improve format

Closes #957 and #956

See merge request !1409

(cherry picked from commit 5fe141d2)

3347ac80 Add root logging configuration and improve format
parent 182c49cf
......@@ -134,15 +134,10 @@ if os.environ.get('DJANGO_EMAIL_HOST'):
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse',
},
},
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s '
'%(process)d %(thread)d %(message)s'
'format': '%(asctime)s %(name)s '
'%(levelname)s %(message)s'
},
},
'handlers': {
......@@ -154,6 +149,7 @@ LOGGING = {
'logfile': {
'level': 'INFO',
'class': 'logging.FileHandler',
'formatter': 'verbose',
'filename': '/concrexit/log/django.log',
}
},
......@@ -161,7 +157,12 @@ LOGGING = {
'django': {
'handlers': ['console', 'logfile'],
'level': 'INFO',
'propagate': False,
},
'': {
'handlers': ['logfile'],
'level': 'INFO',
}
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment