[Django] #23394: Need documentation for merging the project's logging configuration with Django's defaults

12 views
Skip to first unread message

Django

unread,
Sep 1, 2014, 11:59:25 PM9/1/14
to django-...@googlegroups.com
#23394: Need documentation for merging the project's logging configuration with
Django's defaults
-------------------------------+--------------------
Reporter: nrogers64 | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
[https://docs.djangoproject.com/en/1.6/topics/logging/#configuring-logging
This part] of the logging documentation says: "Prior to Django 1.5, the
LOGGING setting always overwrote the default Django logging configuration.
From Django 1.5 forward, it is possible to get the project’s logging
configuration merged with Django’s defaults, hence you can decide if you
want to add to, or replace the existing configuration."

However, I don't see an example of how to get the project's logging
configuration merged with Django's defaults. Since there's no example, I
assume that it's supposed to be easy to do, but I can't figure out how to
do it. I'm not the only one, either. Have a look at
[http://stackoverflow.com/questions/25434021/how-can-i-add-to-djangos-
default-logging this Stack Overflow question] that I posted. Would you be
willing to add an example of getting the project's logging configuration
merged with Django's defaults?

--
Ticket URL: <https://code.djangoproject.com/ticket/23394>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 2, 2014, 3:38:15 AM9/2/14
to django-...@googlegroups.com
#23394: Need documentation for merging the project's logging configuration with
Django's defaults
--------------------------------------+------------------------------------
Reporter: nrogers64 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by claudep):

* needs_better_patch: => 0
* needs_tests: => 0
* version: 1.6 => master
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted


Comment:

The documentation could be clearer. With `'disable_existing_loggers':
False`, if you redefine an existing logger, you will have to redefine it
entirely, no merge effect are applied with the existing logger (AFAIK).

--
Ticket URL: <https://code.djangoproject.com/ticket/23394#comment:1>

Django

unread,
Apr 9, 2015, 9:44:10 AM4/9/15
to django-...@googlegroups.com
#23394: Need documentation for merging the project's logging configuration with
Django's defaults
-------------------------------------+-------------------------------------
Reporter: nrogers64 | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #24361

--
Ticket URL: <https://code.djangoproject.com/ticket/23394#comment:2>

Reply all
Reply to author
Forward
0 new messages