On Sep 17, 6:25 pm, Simon Willison <si...@simonwillison.net> wrote: > I think we should add logging to Django in version 1.2, implemented as > a light-weight wrapper around the Python logging module > (django.core.log maybe?) plus code to write errors to the Apache error > log under the mod_python handler and environ['wsgi.errors'] under WSGI > (meaningmod_wsgiwill write to the Apache error log as well). It isn't necessarily practical to use environ['wsgi.errors'] as that exists only for life of that request. Thus, anything done at time of module imports or in background threads wouldn't have access to it. You are better of just using sys.stderr. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
- Re: Proposal for 1.2: built-in logging with django.cor... Russell Keith-Magee
- Re: Proposal for 1.2: built-in logging with djang... Andrew Gwozdziewycz
- Re: Proposal for 1.2: built-in logging with djang... Simon Willison
- Re: Proposal for 1.2: built-in logging with d... Vinay Sajip
- Re: Proposal for 1.2: built-in logging with djang... Vinay Sajip
- Re: Proposal for 1.2: built-in logging with d... Russell Keith-Magee
- Re: Proposal for 1.2: built-in logging wi... Vinay Sajip
- Re: Proposal for 1.2: built-in logging with django.cor... Eric Florenzano
- Re: Proposal for 1.2: built-in logging with django.cor... apollo13
- Re: Proposal for 1.2: built-in logging with django.cor... Graham Dumpleton
- Re: Proposal for 1.2: built-in logging with django.cor... Eric Holscher
- Re: Proposal for 1.2: built-in logging with djang... Simon Willison
- Re: Proposal for 1.2: built-in logging with djang... Vinay Sajip
- Re: Proposal for 1.2: built-in logging with django.cor... Vinay Sajip
- Re: Proposal for 1.2: built-in logging with djang... Waylan Limberg
- Re: Proposal for 1.2: built-in logging with d... Russell Keith-Magee
- Re: Proposal for 1.2: built-in logging with d... Vinay Sajip
- Re: Proposal for 1.2: built-in logging with djang... Simon Willison
- Re: Proposal for 1.2: built-in logging with d... Vinay Sajip
- Re: Proposal for 1.2: built-in logging wi... Simon Willison