Re: logrotation/logreopening in ZTK-based applications

Adam GROSZER <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
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> 


-- 
Best regards,
 Adam GROSZER                            mailto:[email protected]
--
Quote of the day:
Criticism, like rain, should be gentle enough to nourish a man's growth without destroying his roots. 
- Frank A. Clark 

_______________________________________________
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.