Re: Custom middleware for logging

2007-10-20 Thread Steve Potter
On Oct 19, 8:43 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/19/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > > > I would like to put together a piece of code that will test the > > referer for each request and if it matches a predefined pattern it > > would log that request as well

Re: Custom middleware for logging

2007-10-19 Thread Jeremy Dunck
On 10/19/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > I would like to put together a piece of code that will test the > referer for each request and if it matches a predefined pattern it > would log that request as well as place a cookie on the client. > > Is custom middleware the correct place

Custom middleware for logging

2007-10-19 Thread Steve Potter
I would like to put together a piece of code that will test the referer for each request and if it matches a predefined pattern it would log that request as well as place a cookie on the client. Is custom middleware the correct place to do this? Also, I'm not exactly clear how response.set_cooki