#24361: The doc is not right w.r.t. LOGGING overwriting. -------------------------------+-------------------- Reporter: Tuttle | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- The https://github.com/django/django/blob/master/docs/topics/logging.txt says
If the `disable_existing_loggers` key in the :setting:`LOGGING` dictConfig is set to `True` (which is the default) the default configuration is completely overridden. That is **not right** and it is pretty painful to trace down that the `django.request` and `django.security`, although disabled, don't propagate to the root logger even when `disable_existing_loggers` in my LOGGING is `True`. One would expect the disabling would allow the logger to propagate again. Many people apparently already ran into this. There are Stack Overflow questions and blog posts about this topic. Best of them I found is here: http://www.caktusgroup.com/blog/2015/01/27 /Django-Logging-Configuration-logging_config-default-settings-logger/ It suggests the working way to put to `settings` to **really erase the default logging**. I think it should definitely be stated in the doc. {{{ LOGGING_CONFIG = None LOGGING = {...} # whatever you want import logging.config logging.config.dictConfig(LOGGING) }}} The logging system is complex by itself, something it is not a pleasure to work with for many. The reset path eliminating the confusion would be most welcome. -- Ticket URL: <https://code.djangoproject.com/ticket/24361> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/049.ac7728920b6e5ee6fcee3006ba86e69a%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.