Skip to content

Add ability to get the logging level #14

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

Closed
jimbobbennett opened this issue Apr 11, 2020 · 3 comments
Closed

Add ability to get the logging level #14

jimbobbennett opened this issue Apr 11, 2020 · 3 comments

Comments

@jimbobbennett
Copy link

It would be good to be able to get the logging level.

One use case is when configuring the logger of one component to share the same level as another.

For example, the miniMQTT library exposes a logger, so I'd like to set the level of that in some client code to be the level set by my application.

@ladyada
Copy link
Member

ladyada commented Apr 11, 2020

heya does this match the cpython version? we want to make this ver a clean subset :)

@jimbobbennett
Copy link
Author

Good point!

The cpython version has a getEffectiveLevel method that does the same thing, albeit by walking the hierarchy of loggers. I've renamed the method in my PR to match this.

@kattni
Copy link
Contributor

kattni commented Apr 30, 2020

This was resolved. Thanks!

@kattni kattni closed this as completed Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants