[Zope3-Users] Re: Getting zope.publisher to log errors

Brian Sutherland jinty at web.de
Wed Jul 2 04:23:27 EDT 2008


On Tue, Jul 01, 2008 at 10:52:25AM -0700, Stephan Richter wrote:
> On Tuesday 01 July 2008, Philipp von Weitershausen wrote:
> >  It also has some code to log to a logger, I think.
> 
> Except that by default logging to zlog is turned off. :-( We just created out 
> own global and root error reporting utility to turn this on by default. (BTW, 
> I think this should be the package default too.)

+lots

Being of the lazy type, I monkey patch the global utility in all my
startup scripts. Would be great to get rid of those. Something like
this:

#XXX evil patch to get errors:
from zope.app.error.error import globalErrorReportingUtility
globalErrorReportingUtility.setProperties(1, copy_to_zlog=1, ignored_exceptions=('NotFound', 'Unauthorized'))

> 
> Regards,
> Stephan
> -- 
> Stephan Richter
> Web Software Design, Development and Training
> Google me. "Zope Stephan Richter"
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

-- 
Brian Sutherland


More information about the Zope3-users mailing list