[Python-Dev] Re: PEP 282 comments (original) (raw)

Jim Fulton jim@zope.com
Mon, 25 Mar 2002 12:00:54 -0500


Jeremy Hylton wrote:

>>>>> "TM" == Trent Mick <trentm@ActiveState.com> writes: TM> [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 excinfo in rather than having the logger call >> sys.excinfo(). >> >> Instead, the logger should be subclassable or extensible so that >> Jeremy can implement this functionality if he really wants it. What's the point here? I've presented use cases, and I maintain a large body of ZODB/ZEO code that already uses these features. So it simply doesn't make sense to say "You Ain't Gonna Need It" because I already need it and zLOG already has it. The feature is simple to explain and implement, and seems to have low implementation cost. So I certainly think it meets the simplest thing that could possibly work criteria.

Yes, this is an important feature.

Thanks Jeremy. :)

BTW, the PEP really should reference zLOG. It didn't the last time I looked.

Jim

-- Jim Fulton mailto:jim@zope.com Python Powered!
CTO (888) 344-4332 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org