Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Plone 3.3 Site Administration

You're reading from   Plone 3.3 Site Administration Manage your site like a Plone professional

Arrow left icon
Product type Paperback
Published in Jul 2010
Publisher Packt
ISBN-13 9781847197047
Length 240 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Alex Clark Alex Clark
Author Profile Icon Alex Clark
Alex Clark
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Plone 3.3 Site Administration
Credits
Foreword
About the Author
About the Reviewer
Preface
1. Background 2. Site Basics FREE CHAPTER 3. Appearance 4. Administration 5. Deployment and Maintenance 6. Optimization 7. Security 8. The Future Index

Rotating logs


As you are probably aware, Zope 2 generates log files. Hence, we need to think about what to do when these log files grow.

Using iw.rotatezlogs on Mac OS X, Ubuntu Linux, and Windows

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:

  1. Add the iw.rotatezlogs egg to the eggs parameter in instance section.

  2. Add an event-log-custom parameter to your instance section with iw.rotatezlogs settings.

  3. 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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image