[Python-Dev] Re: PEP 282 comments
Vinay Sajip
vinay_sajip@red-dove.com
Thu, 21 Mar 2002 13:24:44 -0000
[Guido]
> 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.
Amen to that. As to Logger extensibility - I will add a
setLoggerClass(klass) which tells the getLogger() [a factory method] which
class to use when instantiating a logger.
Regards,
Vinay Sajip