Two similar logging programs but different ouputs
Vinay Sajip
vinay_sajip at yahoo.co.uk
Tue Apr 19 03:56:17 EDT 2011
More information about the Python-list mailing list
Tue Apr 19 03:56:17 EDT 2011
- Previous message (by thread): Two similar logging programs but different ouputs
- Next message (by thread): Programmatically log in and request XML
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Apr 19, 6:35 am, Disc Magnet <discmag... at gmail.com> wrote: > I couldn't find this mentioned in the documentation at: > > http://docs.python.org/library/logging.config.html#configuration-file... > > Could you please tell me where this is documented? It's documented here: http://docs.python.org/library/logging.config.html#dictionary-schema-details (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. Regards, Vinay Sajip
- Previous message (by thread): Two similar logging programs but different ouputs
- Next message (by thread): Programmatically log in and request XML
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list