Re: logging module: add client_addr to all log records

2006-05-11 Thread Joel Hedlund
> See a very similar example which uses the new 'extra' keyword argument: Now that's brilliant! Exactly what I need. But unfortunately, it's also unavailable until 2.5 comes out. Until then I'm afraid I'm stuck with my shoddy hack... but it's always nice to know the time will come when I can fi

Re: logging module: add client_addr to all log records

2006-05-09 Thread Vinay Sajip
[EMAIL PROTECTED] wrote: > Hi! > > I'm writing a server and I want to use the logging module for logging > stuff. I want to log all transactions in detail, and if everything goes > haywire I want to know which client did it. Therefore I want to affix > the client address to every single log item.

logging module: add client_addr to all log records

2006-05-08 Thread [EMAIL PROTECTED]
Hi! I'm writing a server and I want to use the logging module for logging stuff. I want to log all transactions in detail, and if everything goes haywire I want to know which client did it. Therefore I want to affix the client address to every single log item. I would like to do the following: Fo