Chris Withers wrote:
Lennart Regebro wrote:

Chris Withers wrote:

Is there any chance I could tempt you to change these to be Python 2.3 style logging calls?



Sure. remind me of the syntax. :)


import logging

logger = logging.getLogger('event.whatever')

logger.error('whatever',exc_info=1)

You could also read:

http://docs.python.org/lib/module-logging.html

...for a more complete description :-)

cheers,

Chris

OK, Thanks. I'm noticing that (with Zope 2.7.2) when I do this, I do not get the modulname (whatever) nor the exception level WARNING printed to the log. Is this a config error, or am I doing something wrong? Because quite obviously, it should be there, right?



_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to