-
Couldn't load subscription status.
- Fork 2
Add a function to get a public logger for a module #23
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
Conversation
This function will return a logger for the public module containing the given module name. This is useful to make sure that logger name only reference public modules, which are the ones that the user imports and interacts with. Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
|
Enabled auto-merge. |
|
Skipping release notes because since this is unreleased, I will write some special release notes for the initial release. |
| @@ -0,0 +1,38 @@ | |||
| # License: MIT | |||
| # Copyright © 2023 Frequenz Energy-as-a-Service GmbH | |||
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.
2024!
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.
We should probably remove these copyright years, from the legal perspective they seem to be useless and we always get them wrong, and it makes testing templates harder, as we need to make the test change every year...
This function will return a logger for the public module containing the given module name. This is useful to make sure that logger name only reference public modules, which are the ones that the user imports and interacts with.
Implements the function suggested in frequenz-floss/frequenz-sdk-python#1009.