1 Sep
2004
1 Sep
'04
9:19 a.m.
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?