Don't forget this one: import sys try: self.dosomething() except Exception, message: LOG(ident, ERROR, 'this is stupid', error=sys.exc_info()) On Wed, 17 Nov 2004 16:43:26 +0100, Josef Meile <jmeile@hotmail.com> wrote:
Hi Pascal,
Could someone remind me what is the easiest way to log things to the log/event.log from a Zope (2.7) Product ? use the LOG method of the zLOG package: <YourZope>/lib/python/zLOG
Regards, Josef
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Peter Bengtsson, http://www.fry-it.com