[Zope] Re: Logging in a product

Peter Bengtsson peterbe at gmail.com
Wed Nov 17 11:25:52 EST 2004


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 at 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 at 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


More information about the Zope mailing list