Skip to content

Commit f21915b

Browse files
dohvistimgraham
authored andcommitted
Fixed #27931 -- Clarified the meaning of "django catch-all logger."
1 parent 9ad6071 commit f21915b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/topics/logging.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ Django provides several built-in loggers.
456456
``django``
457457
~~~~~~~~~~
458458

459-
``django`` is the catch-all logger. No messages are posted directly to
460-
this logger.
459+
The catch-all logger for messages in the ``django`` hierarchy. No messages are
460+
posted using this name but instead using one of the loggers below.
461461

462462
.. _django-request-logger:
463463

@@ -734,18 +734,19 @@ By default, Django configures the following logging:
734734

735735
When :setting:`DEBUG` is ``True``:
736736

737-
* The ``django`` catch-all logger sends all messages at the ``INFO`` level or
738-
higher to the console.
737+
* The ``django`` logger sends messages in the ``django`` hierarchy (except
738+
``django.server``) at the ``INFO`` level or higher to the console.
739739

740740
When :setting:`DEBUG` is ``False``:
741741

742-
* The ``django`` logger send messages with ``ERROR`` or ``CRITICAL`` level to
742+
* The ``django`` logger sends messages in the ``django`` hierarchy (except
743+
``django.server``) with ``ERROR`` or ``CRITICAL`` level to
743744
:class:`AdminEmailHandler`.
744745

745746
Independent of the value of :setting:`DEBUG`:
746747

747-
* The :ref:`django-server-logger` logger sends all messages at the ``INFO``
748-
level or higher to the console.
748+
* The :ref:`django-server-logger` logger sends messages at the ``INFO`` level
749+
or higher to the console.
749750

750751
See also :ref:`Configuring logging <configuring-logging>` to learn how you can
751752
complement or replace this default logging configuration.

0 commit comments

Comments
 (0)