ID EN
Logging

getLevelNamesMapping

Python 3.11

Returns a mapping from level names to their corresponding logging levels. For example, the string “CRITICAL” maps to CRITICAL. The returned mapping is copied from an internal mapping on each call to this function.

Syntax

PYTHON
logging.getLevelNamesMapping()

See Also

CRITICAL