On 09/11/2010 06:27, Dylan Jay wrote: > Anyone know to get Zope to also ignore these kind of health checks? > I'd like to schedule them more regularly but they just end up clogging > up the logs.
No existing functionality exists as far as I know, but it is rather simple to add it, for some value of simple :-) mailinglogger comes to mind as a good starting point (I've used it as an example before), just modify it to log to a file instead and add some regex stuff to the config. It contains examples of the component.xml and datatypes.py parts you need to integrate this into zope.conf. http://pypi.python.org/pypi/mailinglogger This allows you to use an alternative logger in zope.conf, for example say you call it selectivelogger, you could then configure zope to use it: %import selectivelogger <eventlog> level info <selectivelogger> level info exclude ^/@@@health_check.* </selectivelogger> </eventlog> But that's just what I would do... :-) Also, I wrote something called logsplit a few years back, which is really meant to work with squid. Squid can pipe its logs to a helper application, so this is meant to be connected in such a manner in order to log each domain's traffic to its own file based on a regex. Perhaps, this will help too: https://svn.upfronthosting.co.za/svn/izak/logsplit/trunk/ regards, Izak _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
