runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Thu, 26 May 2022 23:41:10 +0200
changeset 3500 a88ac1760faf
parent 1973 cc7a46953471
permissions -rw-r--r--
IDE: fix exception happening in debug mode when logging process termination.
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# See COPYING.Runtime file for copyrights details.

LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]