Re: Tying log messages from a single request together?

2011-04-15 Thread Shawn Lewis
Thanks for the answers. I ended up writing a simple middleware that sticks a request id in thread local (so not acceptable to django). And then there's a logging.Filter that attaches the request_id to log records. This works nicely with the settings.LOGGING configuration option. Russell, I haven

Tying log messages from a single request together?

2011-04-13 Thread Shawn Lewis
Hi, Is there an idiomatic way to tie messages from a single request together with 1.3's new logging features? From the documentation it doesn't look like there is. Something like what drlog does ( http://fairviewcomputing.com/blog/2008/03/05/django-request-logging/). It seems like a standard thin