Re: [Zope] Zope log rotation
> Dear All: > > Quick question about Zope admin. > Can zope automatically rotate its access log? Thanks. Edit z2.py. Change the line: lg = logger.file_logger(LOG_PATH) to: lg = logger.rotating_file_logger(LOG_PATH, freq='daily', maxsize=400) You can use 'daily', 'weekly' or 'monthly' for the frequency of rotation. -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope log rotation
+[ Dan L. Pierson ]- | Chien-pin Wang writes: | > Dear All: | > | > Quick question about Zope admin. | > Can zope automatically rotate its access log? Thanks. | | I use logrotate on Linux for this. Unfortunately I have to use the | before and after config options to stop zserver before and restart it | after -- otherwise zserver just keeps appending to the old log. FreeBSD has the newsyslog utility, which allows you to send a signal when rotating the log. You can rotate on time or size, and it takes a pid file so it knows what pid to rotate. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope log rotation
On Fri, May 19, 2000 at 07:39:34AM -0400, J. Atwood wrote: > If you are running it on a Linux box (RH) there are already tools > installed to rotate logs (move, tar, etc). That and a cron job will > be your best friend. Particularly logrotate which is made just for this. just look at: /etc/logrotate.conf and: man logrotate good luck. Jerome ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope log rotation
If you are running it on a Linux box (RH) there are already tools installed to rotate logs (move, tar, etc). That and a cron job will be your best friend. J At 12:43 PM +0800 5/19/2000, Chien-pin Wang wrote: >Dear All: > > Quick question about Zope admin. > Can zope automatically rotate its access log? Thanks. > >Chien-pin > >___ >Zope maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )