Two similar logging programs but different ouputs
vinay_sajip at yahoo.co.uk
Tue Apr 19 09:56:17 CEST 2011
On Apr 19, 6:35 am, Disc Magnet <discmag... at gmail.com> wrote:
> I couldn't find this mentioned in the documentation at:
> Could you please tell me where this is documented?
It's documented here:
(look for 'disable_existing_logger'), but having looked at it, it *is*
poorly documented and hard to find. I'll update the fileConfig section
to describe the behaviour more clearly.
> In the following code, foo.bar is not explicitly mentioned in the file
> configuration. As per what you said, foo.bar should be disabled.
Actually I wasn't clear enough in my earlier response. The behaviour
is that all loggers are disabled other than those explicitly named in
the configuration *and their descendants*.
I'm glad you brought these points up, they do highlight an area where
the documentation could be clearer. I'll get on it.
More information about the Python-list