Can <instance>/log/Z2.log be deleted? On restart is fresh file created? Also, is max-bytes supported for logfiles in zope.conf? Thanks, Tom
On Jan 30, 2008, at 12:28 PM, Jens Vagelpohl wrote:
On Jan 30, 2008, at 18:17 , Tom Von Lahndorff wrote:
Can <instance>/log/Z2.log be deleted? On restart is fresh file created?
Yup.
Also, is max-bytes supported for logfiles in zope.conf?
What's that?
Saw it referenced here: http://blogs.sistes.net/Garito/568 <logger access> level WARN #<logfile> # path $INSTANCE/log/Z2.log # format %(message)s #</logfile> <rotatelogfile> path $INSTANCE/log/Z2.log format %(message)s max-bytes 5MB compression zip backup-count 0 </rotatelogfile> </logger>
jens
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Jan 30, 2008 12:32 PM, Tom Von Lahndorff <tom@modscape.com> wrote:
Saw it referenced here: http://blogs.sistes.net/Garito/568
Ah! ZConfig 2.5 and newer include max-bytes and old-files in the basic "logfile" section, but Products.rotatezlogs provides more features. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "Chaos is the score upon which reality is written." --Henry Miller
On Jan 30, 2008 12:17 PM, Tom Von Lahndorff <tom@modscape.com> wrote:
Also, is max-bytes supported for logfiles in zope.conf?
max-bytes is supported as of ZConfig 2.5. I'm not sure what version of ZConfig is currently being used with Zope 2, but would be surprised if it weren't possible to use ZConfig 2.5 or newer (2.5.1 is available). -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "Chaos is the score upon which reality is written." --Henry Miller
participants (3)
-
Fred Drake -
Jens Vagelpohl -
Tom Von Lahndorff