Logging in a product
Hi, Could someone remind me what is the easiest way to log things to the log/event.log from a Zope (2.7) Product ? Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
--On Mittwoch, 17. November 2004 16:19 Uhr +0100 Pascal Peregrina <Pperegrina@Lastminute.com> wrote:
Hi,
Could someone remind me what is the easiest way to log things to the log/event.log from a Zope (2.7) Product ?
from zLOG import LOG, INFO LOG(ident, INFO, 'this is stupid') -aj
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
participants (4)
-
Andreas Jung -
Josef Meile -
Pascal Peregrina -
Peter Bengtsson