plone / plone.recipe.zope2instance

zc.buildout recipe to setup and configure a Zope 2 instance.
https://pypi.org/project/plone.recipe.zope2instance
7 stars 23 forks source link

Support for advanced WSGI logger configuration #119

Open zopyx opened 5 years ago

zopyx commented 5 years ago

Proposal https://community.plone.org/t/proposal-updating-logger-support-for-zope2instance-recipe-for-wsgi/8929/3

ale-rt commented 4 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.