Though FATAL is not mentioned in the doc, but I think it should be added to getLevelName, just like how WARN is handled now: >>> logging.getLevelName("WARN") 30
Just a comment to the https://hg.python.org/cpython/rev/85f9f8bf2ec8 It's functionality is right. It's just a little bit weird, that two derived levels in _nameToLevel: 'FATAL' maps to FATAL, i.e. itself, while 'WARN' maps to the WARNING, i.e. to the main level from which is derived.
History
Date
User
Action
Args
2022-04-11 14:58:35
admin
set
github: 72122
2016-09-03 18:12:28
Ondřej Medek
set
messages: +
2016-09-03 16:04:45
python-dev
set
status: open -> closednosy: + python-devmessages: + resolution: fixedstage: resolved