[mod_python] I use a custom login form. Can I make the userid showup in the access log?

Scott Chapman scott_list at mischko.com
Thu Sep 1 21:33:53 EDT 2005


Graham Dumpleton wrote:
> Scott Chapman wrote ..
> 
>>I'm using the latest apache2 and mod_python.
>>
>>I'd really like to be able to change the username for logging purposes
>>in the 
>>access file.  Can this be done?
> 
> 
> In your handler, assign the user name to "req.user". Eg:
> 
>   req.user = "scott"
> 
> This is the second time this question has come up lately, so looks like
> I better add a FAQ entry. :-)
> 
> Graham
> 
> 

Graham,
Thanks for the tip. It works.

Scott



More information about the Mod_python mailing list