[Zope-DB] A new event.log on every restart of Zope

Ken Winter ken at sunward.org
Tue Jul 15 19:02:23 EDT 2008

It would accelerate my Zope debugging cycle to have a new event.log file
automatically started every time I restart Zope, with the old file


It seems like a simple way to do this would be to modify the zope.conf
<eventlog> entry, which currently reads like this.



      level info


            path $INSTANCE/log/event.log

            level info




.so that the "path" line puts a "now" timestamp into the file name,
something like this.


            path $INSTANCE/log/event<'NOW' TIMESTAMP>.log


.so that the file name includes the Zope restart timestamp, something like




My question is: what would be the syntax for the zope.conf element I have
shown above as <'NOW' TIMESTAMP>?



~ Ken


PS - I'm aware that there are various ways to "rotate" log files at time
intervals or when they reach a certain size.  That's not what I need.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-db/attachments/20080715/513f8a75/attachment-0001.html

More information about the Zope-DB mailing list