I am trying to make the logrotate mechanism work like it is described here: https://docs.plone.org/manage/deploying/logs.html
Unfortunately adding these lines into [instance_base] section makes no difference:
I can also not see any changes in parts/client1/etc/zope.cfg, size.zcml or wsgi.ini after a buildout. Am I doing something wrong here? In an other project I am using the logrotate daemon of the OS but in this project I want it to have defined within the user space.
Traceback (most recent call last):
File "/home/htw/plone/zinstance/parts/client6/bin/interpreter", line 314, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File "/home/htw/plone/buildout-cache/eggs/Zope-4.1.3-py3.8.egg/Zope2/Startup/serve.py", line 255, in <module>
sys.exit(main() or 0)
File "/home/htw/plone/buildout-cache/eggs/Zope-4.1.3-py3.8.egg/Zope2/Startup/serve.py", line 251, in main
return command.run()
File "/home/htw/plone/buildout-cache/eggs/Zope-4.1.3-py3.8.egg/Zope2/Startup/serve.py", line 180, in run
setup_logging(log_fn, global_conf=vars)
File "/home/htw/plone/buildout-cache/eggs/Zope-4.1.3-py3.8.egg/Zope2/Startup/serve.py", line 78, in setup_logging
return fileConfig(
File "/usr/lib/python3.8/logging/config.py", line 79, in fileConfig
handlers = _install_handlers(cp, formatters)
File "/usr/lib/python3.8/logging/config.py", line 145, in _install_handlers
h = klass(*args, **kwargs)
TypeError: __init__() got multiple values for argument 'when'
If that is the same reason as I am experiencing then I could add my bug report to the same issue. In the other case I could create a new one. For the moment I subscribed to #119 to get a notification if it is fixed.
I guess the issue is that when is the second parameter of logging.handlers.TimedRotatingFileHandler. And if I omit the definition of event-log-args it uses the default which is a tuple of two values. The second one of them already sets the parameter when to the value "a".
Long story short. It should work like this and I will check this out: