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 03:21 PM, Adam GROSZER wrote:
> Hello Christian,
>
> Wednesday, November 10, 2010, 8:47:43 AM, you wrote:
>
> CT>  Hi,
>
> CT>  Zope 2 provides a command to ask it to re-open its log files thus
> CT>  supporting outside logrotation.
>
> CT>  We have a ZTK-based app and found that the server provides neither
> CT>  signal handling to rotate logs nor a zopectl command. Does anybody
> CT>  remember wether this was ever built?
>
> CT>  I see an old discussion on the Python list
> CT>  (http://mail.python.org/pipermail/python-dev/2006-January/059566.html)
> CT>  but no conclusion.
>
> CT>  If this isn't in yet, does anybody know what the right place would be?
> CT>  (I guess the packages providing the main loops and configuring the
> CT>  process would be the right ones.)
>
> I think ZTK should have a configurable log rotation built-in.
> Like:
>        <logfile>
>          path log.log
>          formatter zope.exceptions.log.Formatter
>          max-size 50MB
>          old-files 5
>        </logfile>

I'd like to keep this out of the server: rotation is a system 
administration task where I'd like to rely on the policies and tools 
provided by the system environment.

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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.