#30553: Misleading logging documentation about disable_existing_loggers default
value.
-------------------------------------+-------------------------------------
     Reporter:  darthdragon          |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
  disable_existing_loggers logging   |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson):

 I think what's meant here is the default for **dictConfig** if
 `disable_existing_loggers` isn't provided.

 > If absent, this parameter defaults to `True`.

 https://docs.python.org/3.7/library/logging.config.html#dictionary-schema-
 details

 I guess the point is that it's important to provide
 `disable_existing_loggers: False` because often the default behaviour is
 not what you want. (''Why aren't my loggers working?'' comes up a lot
 because of this.)

 For me, it'd be worth a rephrase to clarify this. (We see a lot of
 confusions.)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30553#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.ab7e464d7ae6970c20a71c82c44b8ef5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to