> 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=4000000)
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 )