[Python-Dev] Re: PEP 282 comments
Trent Mick
trentm@ActiveState.com
Thu, 21 Mar 2002 10:42:04 -0800
[Guido van Rossum wrote]
> > [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.
Alrigtie.
Trent
--
Trent Mick
TrentM@ActiveState.com