[Zope3-Users] Rotating z3.log

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Apr 8 00:55:32 EDT 2009


On Tuesday 07 April 2009, andrew wrote:
> Does anyone know of a straightforward way of setting up a Zope3 instance
> to rotate z3.log ? At the moment I have one big file but this is not
> great for backups. I suppose I could use logrotate (and will have to if
> there's no Zope solution), but from a cursory dig into ZConfig it looks
> like it should be possible.

    <accesslog>
      <logfile>
        path access.log
        max-size 50MB
        old-files 5
      </logfile>
    </accesslog>

There are more options, but that's what I use.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"


More information about the Zope3-users mailing list