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,
},
},
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25959>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* stage: Unreviewed => Accepted
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:1>
* owner: nobody => PramodBisht
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:2>
* cc: pramodpsb@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:4>
* needs_better_patch: 0 => 1
Comment:
Left some comments on the [https://github.com/django/django/pull/5865 pull
request].
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"483e0091e3891dc4ed898ea0dbf6923c166f0674" 483e0091]:
{{{
#!CommitTicketReference repository=""
revision="483e0091e3891dc4ed898ea0dbf6923c166f0674"
Fixed #25959 -- Updated logging example to use the django logger.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"fa21766230519eba1c7f14021b9647c8d29f5999" fa217662]:
{{{
#!CommitTicketReference repository=""
revision="fa21766230519eba1c7f14021b9647c8d29f5999"
[1.9.x] Fixed #25959 -- Updated logging example to use the django logger.
Backport of 483e0091e3891dc4ed898ea0dbf6923c166f0674 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25959#comment:7>