-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-133577: Add parameter formatter
to logging.basicConfig
#133578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-133577: Add parameter formatter
to logging.basicConfig
#133578
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant
Conversation
59777ee
to
e7e2ccf
Compare
formatter_class
to logging.basicConfig
formatter
to logging.basicConfig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a test and documentation update, not just the docstring.
@@ -0,0 +1 @@ | |||
Add parameter ``formatter`` to ``logging.basicConfig``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add parameter ``formatter`` to ``logging.basicConfig``. | |
Add parameter ``formatter`` to :func:`logging.basicConfig`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZeroIntensity done 👍
#133577 any more changes here seems to be at risk of ending up in the trash can. Can you help me clear up the situation? Is this feature welcome or not? I would rather be sure first, and then go all in. |
I'm not at liberty to approve the feature, but I'm personally +1. I defer to @vsajip. |
I'll look favorably on the change where you pass in a formatter instance rather than a class, as that is more generally useful than your earlier suggestion. Please go ahead and update the documentation and tests, as suggested by @ZeroIntensity. |
@vsajip cool! Pushed, looking forward to your readme 🙏 |
0b80bc8
to
6454d34
Compare
Happy to make adjustments 🍻
logging.basicConfig
should support parameterformatter_class
(currently instantiates hardcodedlogging.Formatter
) #133577