This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andylowry
Recipients andylowry
Date 2021-04-15.17:46:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
It would be useful to have something like a `getLevelNames` method to return the current list of level names, ordered by priority.

This currently appears to be available only by accessing a private member, like `_levelToName` or `_nameToLevel`.

This functionality is useful, for example, in populating a `choices` list for an `argparse` option to allow a user to select a logging level when launching a program from a command line.
History
Date User Action Args
2021-04-15 17:46:57andylowrysetrecipients: + andylowry
2021-04-15 17:46:57andylowrysetmessageid: <[email protected]>
2021-04-15 17:46:57andylowrylinkissue43858 messages
2021-04-15 17:46:57andylowrycreate