summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorVarun Sharma <varunsharmalive@gmail.com>2015-12-24 20:21:27 +0530
committerTim Graham <timograham@gmail.com>2015-12-24 10:07:56 -0500
commitfa21766230519eba1c7f14021b9647c8d29f5999 (patch)
tree4d125ebfbc1295bf48bf48c7a70b9bfb8b53cc12 /docs
parent47f3ee2625c5461624adc9f71f9624aa05c1e882 (diff)
[1.9.x] Fixed #25959 -- Updated logging example to use the django logger.
Backport of 483e0091e3891dc4ed898ea0dbf6923c166f0674 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/logging.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
index d64db31aa0..99fdad0463 100644
--- a/docs/topics/logging.txt
+++ b/docs/topics/logging.txt
@@ -240,8 +240,8 @@ The full documentation for `dictConfig format`_ is the best source of
information about logging configuration dictionaries. However, to give
you a taste of what is possible, here are several examples.
-First, here's a simple configuration which writes all request logging from the
-:ref:`django-request-logger` logger to a local file::
+First, here's a simple configuration which writes all logging from the
+:ref:`django-logger` logger to a local file::
LOGGING = {
'version': 1,
@@ -254,7 +254,7 @@ First, here's a simple configuration which writes all request logging from the
},
},
'loggers': {
- 'django.request': {
+ 'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
@@ -459,6 +459,8 @@ Loggers
Django provides several built-in loggers.
+.. _django-logger:
+
``django``
~~~~~~~~~~