[Python-Dev] Using logging in the stdlib and its unit tests (original) (raw)

Vinay Sajip vinay_sajip at yahoo.co.uk
Wed Dec 8 20:04:36 CET 2010


Paul Moore <p.f.moore gmail.com> writes:

On 8 December 2010 14:52, Nick Coghlan <ncoghlan gmail.com> wrote: > As I see it, there aren't many cases at the library level where > logging errors is more appropriate than raising exceptions: On a slightly tangential note, what do you think of the idea of library code including info or debug level logging? In effect, tracing and diagnostic code built in and available simply by changing the logging level?

That's how it works right now. You get info() and debug() messages sent via calls in library code, just by changing the level of (say) the root logger.

Regards,

Vinay Sajip



More information about the Python-Dev mailing list