[Zope] Rotating ZEO logs?

Dieter Maurer dieter at handshake.de
Thu Dec 30 13:45:38 EST 2004


Paul Winkler wrote at 2004-12-30 10:49 -0500:
> ...
>The common idiom after rotating Zope log files is:
>
>          kill -USR2 `cat $ZOPE_HOME/var/Z2.pid`
>"""
>
>What do people do with their ZEO server log?

I wrote a small module "Rotator". "Rotator" instances behave
like a file but in fact open (and write) a new disk file at each
day boundary.

I extended Zope's logging machinery by a new "RotatedFile" handler.

We use this for all logging -- and forget about special ways
to rotate logs and mystic signals...

-- 
Dieter


More information about the Zope mailing list