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@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

-- 
Brian Sutherland
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to