Update logging example to use the django logger
The first example config for Django's new logger still includes the old logger:
https://docs.djangoproject.com/en/1.9/topics/logging/#configuring-logging
'loggers': {
'django.request': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
Should be:
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
Change History
(7)
Easy pickings: |
set
|
Summary: |
Outdated Django docs → Update logging example to use the django logger
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Pramod Bisht
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
The example is still valid if you only want to capture output from the 'django.request` logger, but I agree a better example would be to use the 'django' logger.