[Checkins] SVN: zc.zope3recipes/trunk/ Removed support for creating a logrotate script for the access.log because it
Christian Zagrodnick
cz at gocept.com
Wed Sep 16 04:41:04 EDT 2009
Log message for revision 104121:
Removed support for creating a logrotate script for the access.log because it
is not possible to reopen the log with ZDaemons ``reopen_transacript``. Note
however that is is possible to declare ``when`` and ``interval`` in a logfile
section to rotate logfiles internally.
Changed:
U zc.zope3recipes/trunk/README.txt
U zc.zope3recipes/trunk/zc/zope3recipes/README.txt
U zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
-=-
Modified: zc.zope3recipes/trunk/README.txt
===================================================================
--- zc.zope3recipes/trunk/README.txt 2009-09-16 08:19:58 UTC (rev 104120)
+++ zc.zope3recipes/trunk/README.txt 2009-09-16 08:41:04 UTC (rev 104121)
@@ -21,8 +21,12 @@
0.10.0 (unreleased)
===================
-- ...
+Removed support for creating a logrotate script for the access.log because it
+is not possible to reopen the log with ZDaemons ``reopen_transacript``. Note
+however that is is possible to declare ``when`` and ``interval`` in a logfile
+section to rotate logfiles internally.
+
==================
0.9.0 (2009/07/21)
==================
Modified: zc.zope3recipes/trunk/zc/zope3recipes/README.txt
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/README.txt 2009-09-16 08:19:58 UTC (rev 104120)
+++ zc.zope3recipes/trunk/zc/zope3recipes/README.txt 2009-09-16 08:41:04 UTC (rev 104121)
@@ -1662,15 +1662,6 @@
</eventlog>
>>> cat(root, 'etc', 'logrotate.d', 'myapp-run-instance')
- /root/var/log/myapp-run/instance-access.log {
- rotate 5
- weekly
- postrotate
- /root/etc/init.d/myapp-run-instance reopen_transcript
- endscript
- }
- <BLANKLINE>
- <BLANKLINE>
/root/var/log/myapp-run/instance-z3.log {
rotate 5
weekly
Modified: zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2009-09-16 08:19:58 UTC (rev 104120)
+++ zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2009-09-16 08:41:04 UTC (rev 104121)
@@ -313,20 +313,12 @@
open(zdaemon_conf_path, 'w').write(str(zdaemon_conf))
if deployment:
- logrotate_access_log = logrotate_template % dict(
- logfile=access_log_path,
- rc=os.path.join(options['bin-directory'], rc),
- conf=zdaemon_conf_path,
- )
logrotate_event_log = logrotate_template % dict(
logfile=event_log_path,
rc=os.path.join(options['bin-directory'], rc),
conf=zdaemon_conf_path,
)
- open(logrotate_path, 'w').write(
- logrotate_access_log
- + '\n\n'
- + logrotate_event_log)
+ open(logrotate_path, 'w').write(logrotate_event_log)
if WIN:
zc.buildout.easy_install.scripts(
More information about the checkins
mailing list