-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Plone 3.3 Site Administration

As you are probably aware, Zope 2 generates log files. Hence, we need to think about what to do when these log files grow.
One of the tasks that could be difficult to standardize across operating systems is rotating Zope 2 log files. Luckily for us, there is iw.rotatezlogs (http://pypi.python.org/pypi/iw.rotatezlogs).
Although technically not a recipe, iw.rotatezlogs makes it simple to set up log rotation.
The process involves three steps:
Add the iw.rotatezlogs egg to the eggs
parameter in instance
section.
Add an event-log-custom
parameter to your instance
section with iw.rotatezlogs settings.
Add an access-log-custom
parameter to your instance
section with iw.rotatezlogs settings.
In 05-deployment-maintenance-rotate.cfg
, we have the following:
[buildout] extends = 05-deployment-maintenance-cron2.cfg [instance] eggs += iw.rotatezlogs event-log-custom = %import iw.rotatezlogs <rotatelogfile> path ${buildout...
Change the font size
Change margin width
Change background colour