Proposed changes to logging defaults

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Dec 9 21:49:31 EST 2010


On Dec 10, 12:48 am, Ethan Furman <et... at stoneleaf.us> wrote:
>
> I like the changes proposed.
>
> Question about the "handler of last resort":  is there only one of them,
> or will each library have its own so it can decide what the minimum
> severity should be for itself?

Libraries decide their severities differently, by setting a level on
their top level logger. There's only one handler of last resort (else
it wouldn't be a last resort). Generally, application developers
determine the level for each logger they're interested; if no explicit
levels are set, the default is the level of the root logger (WARNING
by default).

Thanks for the feedback,

Vinay Sajip



More information about the Python-list mailing list