#17900: Logging Primer misrepresents the StreamHandler
-------------------------------+--------------------------------------
     Reporter:  c4m3lo         |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Documentation  |                  Version:  1.4-beta-1
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Fandekasp):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Effectively, the doc says:
     Returns a new instance of the StreamHandler class. If stream is
 specified, the instance will use it for
     logging output; otherwise, sys.stderr will be used.


 But django always specifies a stream to handler, thus
 logging.StreamHandler outputs to stdout.
 You can have a look at django.utils.dictconfig.py
 DictConfigurator.configure_handler() , from line 491 to 501.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17900#comment:1>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to