This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author raybb
Recipients raybb, vinay.sajip
Date 2020-10-02.14:55:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601650550.8.0.148674676307.issue41906@roundup.psfhosted.org>
In-reply-to
Content
Thank you for the clarification.

I think I was most confused by the docs on this page (which I should have included in my initial post): https://docs.python.org/3/howto/logging.html

It says: 

"In Python 3.2, a new means of configuring logging has been introduced, using dictionaries to hold configuration information. This provides a superset of the functionality of the config-file-based approach outlined above, and is the recommended configuration method for new applications and deployments."


Since it is the recommended configuration method I had naively assumed that it would be compatible with the feature of just using callables instead which was mentioned here https://docs.python.org/3/library/logging.html. 


I think it would be a nice enhancement long term to be able too support callables in dictconfigs.

In the short term do you think it is reasonable to update the first page mentioned in this comment to clarify that even though dictConfig is recommended it is not a feature parity with the object oriented api?

It would also be nice to clarify this on the second page to say that callables don't work if using dictConfig.


I understand it does say a factory is required on the page you linked. I think anyone who reads the docs as well as they should will find it. But I think adding information about this too other parts of the docs will make it much easier for newer folks to catch the difference early on.


Thanks for your work on the logging parts of the api in python. I've read many of your docs and they are very helpful.
History
Date User Action Args
2020-10-02 14:55:50raybbsetrecipients: + raybb, vinay.sajip
2020-10-02 14:55:50raybbsetmessageid: <1601650550.8.0.148674676307.issue41906@roundup.psfhosted.org>
2020-10-02 14:55:50raybblinkissue41906 messages
2020-10-02 14:55:50raybbcreate