mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #21714 -- Moved logging configuration to global setup()
Thanks Aymeric Augustin for the report and the review.
This commit is contained in:
parent
1d23d766ab
commit
b8e3373f45
5 changed files with 36 additions and 41 deletions
|
@ -222,11 +222,9 @@ set to ``True`` (which is the default) the default configuration is completely
|
|||
overridden. Alternatively you can redefine some or all of the loggers by
|
||||
setting ``disable_existing_loggers`` to ``False``.
|
||||
|
||||
Logging is configured as soon as settings have been loaded
|
||||
(either manually using :func:`~django.conf.settings.configure` or when at least
|
||||
one setting is accessed). Since the loading of settings is one of the first
|
||||
things that Django does, you can be certain that loggers are always ready for
|
||||
use in your project code.
|
||||
Logging is configured as part of the general Django ``setup()`` function.
|
||||
Therefore, you can be certain that loggers are always ready for use in your
|
||||
project code.
|
||||
|
||||
.. _dictConfig format: http://docs.python.org/library/logging.config.html#configuration-dictionary-schema
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue