Message377813
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. |
|
Date |
User |
Action |
Args |
2020-10-02 14:55:50 | raybb | set | recipients:
+ raybb, vinay.sajip |
2020-10-02 14:55:50 | raybb | set | messageid: <1601650550.8.0.148674676307.issue41906@roundup.psfhosted.org> |
2020-10-02 14:55:50 | raybb | link | issue41906 messages |
2020-10-02 14:55:50 | raybb | create | |
|