[Python-Dev] Re: PEP 282 comments
Guido van Rossum
guido@python.org
Thu, 21 Mar 2002 08:09:23 -0500
> [Jeremy Hylton wrote]
> > It seems quite plausible to decide to log an exception and
> > then get another trivial exception raised and caught on the
> > way to the logger. You would still want to log the original
> > exception, so passing it explicitly is helpful sometimes.
[Trent]
> Yes, I suppose so.
I'd like to call YAGNI on this. Also on the idea of being able to
pass an exception to all logging levels. Also on the idea of passing
the exc_info in rather than having the logger call sys.exc_info().
Instead, the logger should be subclassable or extensible so that
Jeremy can implement this functionality if he really wants it.
KISS.
--Guido van Rossum (home page: http://www.python.org/~guido/)