[Python-Dev] Re: PEP 282 comments

Barry A. Warsaw barry@zope.com
Thu, 21 Mar 2002 09:50:41 -0500


>>>>> "TM" == Trent Mick <trentm@ActiveState.com> writes:

    TM> I don't know if I understand the example case here: do you not
    TM> even log _to file_ in stealth mode?

No (I think that's a quintuple negative :).  We always log to file,
even in stealth mode.
    
    TM> In any case I would handle this by attaching a Filter object
    TM> to any Handler that should *not* log in stealth mode:

Seems reasonable.

    >> Does this seem reasonable given PEP 282's current proposal?

    TM> Sure. It depends on how you lay out your code whether the
    TM> formatting and display of the web interface is done via the
    TM> logging module. I don't think that that would be the right
    TM> fit. The logging to file definitely fits into the logging
    TM> module's purview.

Hmm, I think I'll have to grag the sample implementation and play
around with it.

Thanks,
-Barry