[Python-Dev] Re: PEP 282 comments

Jeremy Hylton jeremy@zope.com
Wed, 20 Mar 2002 18:33:46 -0500


On Wed, 20 Mar 2002 23:29:04 -0000

> I propose to add an additional method:
> 
> def logException(self, level, exc_info, msg, *args)
> 
> This should do the trick, I hope. The 0.4 version will
> include this method.

I really like the shorthands for log levels, e.g.
logger.debug() instead of logger.log(DEBUG, ...).  So I'd be
disappointed if I couldn't use it when I want to log an
exception.

Jeremy