Re: [Python-Dev] Proposed change to logging.basicConfig

2011-03-29 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > I'm not a logging expert, but the fact that your description above > mentions at least two instances of special-casing make it sound like > the API has an usability (or learnability) problem. Well, basicConfig() was provided to make it as easy as possible to

Re: [Python-Dev] Proposed change to logging.basicConfig

2011-03-29 Thread Matthew Woodcraft
Terry Reedy wrote: > I am bothered by mutually exclusive parameters. This is one reason I was > glad to see cmp eliminated from list.sort. Quick: what happens if one > passes both cmp and key to list.sort? There are three reasonable > possibilities. As far as I can read, the answer is not documen

Re: [Python-Dev] Proposed change to logging.basicConfig

2011-03-29 Thread Terry Reedy
On 3/29/2011 12:35 PM, Vinay Sajip wrote: I'm planning a change to logging.basicConfig to add an optional "handlers" keyword argument which defaults to None. If specified, this should be an iterable of already created handlers, which will be added to the root logger (if it doesn't already have a

Re: [Python-Dev] Proposed change to logging.basicConfig

2011-03-29 Thread Antoine Pitrou
On Tue, 29 Mar 2011 16:35:08 + (UTC) Vinay Sajip wrote: > I'm planning a change to logging.basicConfig to add an optional "handlers" > keyword argument which defaults to None. > > If specified, this should be an iterable of already created handlers, which > will > be added to the root logger

[Python-Dev] Proposed change to logging.basicConfig

2011-03-29 Thread Vinay Sajip
I'm planning a change to logging.basicConfig to add an optional "handlers" keyword argument which defaults to None. If specified, this should be an iterable of already created handlers, which will be added to the root logger (if it doesn't already have any handlers). Any handler in the iterable wh