[Zope] Logging users in Zope 2.x

Hannu Krosing hannu@tm.ee
Fri, 11 Feb 2000 21:42:10 +0200


How should I configure logging to get usernames into Z2.log

I first hoped to get it from Apache's access_log, but it saves 
username only when doing user authentication itself.

Then I thought that Zope at least would log it and migrated the 
site to Zope 2.1.3 to get logging support. 

Unfortunately it does still not log usernames and I have not 
found the place where I could turn it on.

Also the format is buggy:

Apache access_log:

193.40.215.135 - - [11/Feb/2000:08:29:55 +0200] "GET / HTTP/1.1" 200 2673

Zope Z2.log

127.0.0.1- - [11/Feb/2000:19:04:46 +0300] "GET /misc_/OFSP/dtmlmethod.gif" 200
1000

the bug being the missing space after the IP address.

what I was hoping for would have looked like:

127.0.0.1 - superuser [11/Feb/2000:19:04:46 +0300] "GET /manage" 200 1000

-------
 Hannu