Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: DB
A new event.log on every restart of Zope
 

Index | Next | Previous | View Flat


ken at sunward

Jul 15, 2008, 4:02 PM


Views: 1357
Permalink
A new event.log on every restart of Zope

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



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



<eventlog>

level info

<logfile>

path $INSTANCE/log/event.log

level info

</logfile>

</eventlog>



.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
this:



event2008-07-15T13:30:09.log



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



~ TIA

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

Subject User Time
A new event.log on every restart of Zope ken at sunward Jul 15, 2008, 4:02 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.