Open zopyx opened 5 years ago
I think probably #120 refers to this task.
If I follow the documentation, I am not able to make it work properly anyway unless I also customize the wsgi template:
wsgi-ini-template = ${buildout:directory}/templates/wsgi.ini
access-log-handler = logging.handlers.TimedRotatingFileHandler
access-log-args = ("${buildout:directory}/var/log/${:_buildout_section_name_}-Z2.log",)
and the template contains:
[handler_accesslog]
class = %(accesslog_handler)s
args = %(accesslog_args)s
kwargs = %(accesslog_kwargs)s
level = %(accesslog_level)s
formatter = message
From my experience access-log-kwargs
is not working properly.
Will probably report more on that.
Proposal https://community.plone.org/t/proposal-updating-logger-support-for-zope2instance-recipe-for-wsgi/8929/3