Re: Help me understand the django.request logger

2011-09-22 Thread Russell Keith-Magee
On Fri, Sep 23, 2011 at 5:56 AM, Roy Smith wrote: > Ugh, I got it figured out.  I totally misunderstood what the docs were > saying.  I was thinking that somehow the django.request logger > magically found the request object and stuck it into the context. > That's not what it was saying at all.  A

Re: Help me understand the django.request logger

2011-09-22 Thread Roy Smith
Ugh, I got it figured out. I totally misunderstood what the docs were saying. I was thinking that somehow the django.request logger magically found the request object and stuck it into the context. That's not what it was saying at all. All the quote from the docs really means is that all the pla

Help me understand the django.request logger

2011-09-22 Thread Roy Smith
I'm running django 1.3, python 2.6. I'm trying to write a custom formatter for the django.request logger. I need to log one of the headers from the HTTP request. The documentation for django.request (https://docs.djangoproject.com/en/1.3/topics/logging/) says: Messages to this logger have t