Message391145
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. |
|
Date |
User |
Action |
Args |
2021-04-15 17:46:57 | andylowry | set | recipients:
+ andylowry |
2021-04-15 17:46:57 | andylowry | set | messageid: <1618508817.95.0.500447634147.issue43858@roundup.psfhosted.org> |
2021-04-15 17:46:57 | andylowry | link | issue43858 messages |
2021-04-15 17:46:57 | andylowry | create | |
|