FWI a new ticket[1] with what looks like a sane implementation to add this 
level of logging to the runserver command has been created.

I'll make sure to copy all the concerns raised by Russ over there and you 
might want to chime in the review process.

Simon

[1] https://code.djangoproject.com/ticket/25684

Le jeudi 29 mai 2014 16:38:06 UTC+2, Tino de Bruijn a écrit :
>
>
> On Thu, May 29, 2014 at 3:40 AM, Russell Keith-Magee <
> [email protected] <javascript:>> wrote:
>
>> However, there's a cost - we'd be adding the requirement for a logging 
>> configuration for something that is only ever used during development. So 
>> we'd end up complicating the process of deploying the devserver, which is 
>> one of those things that is supposed to Just Work™ out of the box.
>>
>> I *think* this would also mean losing the colorisation of devserver 
>> messages, and for me, colorisation of output of the devserver is a higher 
>> priority than the need to filter specific lines out of devserver output 
>> (don't quote me on this one though -- it might be possible to preserve 
>> colorisation. Some experimentation may be required).
>>
>
> Isn't this easy to set up with defaults for logging? Like we already do 
> for `django.request` and `django.security`[1]?
>
> And it appears colouring log messages is possible with a custom formatter 
> [2].
>
> +1 from me to have more control over the output of the devserver.
>
>
> Tino
>
> [1] 
> https://github.com/django/django/blob/778ce245dd466bce1b19f89e52cf9ed8f1b46513/django/utils/log.py
> [2] 
> http://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" 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].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/602a9efc-cfd3-4063-94b5-a3a8e8bdc28d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to