#21429: BaseCommand should use logging instead of custom output wrappers
-------------------------------------+-------------------------------------
     Reporter:  Nical                |                    Owner:  John Kang
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Management     |                  Version:  master
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  command output       |             Triage Stage:  Accepted
  logger                             |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Forest Gregg):

 > Python loggers implicitly add new line characters at the end.
 > Should I leave these log outputs with newlines or is there a better way
 to append command statuses on the same line?

 As of Python 3.2, you can set the terminator to
 
[[https://docs.python.org/3/library/logging.handlers.html#streamhandler|something
 other than the newline in the StreamHandler]]. You could use a special
 handler for logging migrations to keep the current behavior.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21429#comment:13>
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/063.d26d98b2ab44aaa76d64ef8938697dcf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to