Skip to content
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

Add getLevelToName #15

Open
aress31 opened this issue Sep 11, 2022 · 1 comment
Open

Add getLevelToName #15

aress31 opened this issue Sep 11, 2022 · 1 comment

Comments

@aress31
Copy link

aress31 commented Sep 11, 2022

@xolox ,

It would be great if you could add a method in verboselogs that would return a map of all the levels and their corresponding number for automation purposes. For example, needing to parse all the available levels of this lib prior to instantiating a new logger.

Cheers,
aress31

@rasa
Copy link

rasa commented Jan 8, 2023

@aress31 Note that Python 3.11 added logging.getLevelNamesMapping.

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

2 participants