[Zope] When is access.log written?

Paul Winkler pw_lists at slinkp.com
Thu Nov 24 11:55:25 EST 2005


On Thu, Nov 24, 2005 at 05:15:27PM +0100, Andreas Jung wrote:
> --On 24. November 2005 16:06:19 +0000 Eddie Butcher 
> <ebutcher at roadrunner.uk.com> wrote:
> >
> >When the request is initially received and before it is processed?
> 
> How should that work when the logfile contains the size of the data sent
> back to the client?
> 
> >
> >When ZOPE has finished creating the response and serves the completed
> >page out?
> 
> See above. The answer should be clear.

In case it's not: access log is written to when the response
is sent back.

If you need a more granular log of what happens when,
the trace log can sometimes be useful.
Uncomment this in your zope.conf:

# <logger trace>
#   level WARN
#   <logfile>
#     path $INSTANCE/log/trace.log
#     format %(message)s
#   </logfile>
# </logger>

There is a script for analyzing its output in your
zope software installation at bin/requestprofiler.py ,
but I have also found it useful to eyeball the log
from time to time.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list