Re: logrotation/logreopening in ZTK-based applications
Christian Theune <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/10/2010 02:23 PM, Fred Drake wrote: > On Wed, Nov 10, 2010 at 2:47 AM, Christian Theune<[email protected]> wrote: >> We have a ZTK-based app and found that the server provides neither >> signal handling to rotate logs nor a zopectl command. Does anybody >> remember wether this was ever built? > > Christian, > > If you want size- or time-based rotation, that can be configured > directly using ZConfig. > > There's a package called zc.signalhandler in the Zope Corporation > repository that I'll be open-sourcing. It'll let you include > something like this in your zope.conf: > > <signalhandlers myapp> > usr2 ZConfig.components.logger.loghandler.reopenFiles > </signalhandlers> > > That will let you re-open ZConfig-configured log files based on a > signal. (The "myapp" is a turdly bit caused by using the same schema > bits as<product-info> sections in the zope.conf schema.) That's what I'm looking for - would be great if you found the time to release it. Christian -- Christian Theune · [email protected] gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1 Zope and Plone consulting and development _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )