runtime/loglevels.py
author Edouard Tisserant
Mon, 01 Mar 2021 15:46:23 +0100
branchsvghmi
changeset 3170 aaa203270ab0
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: Make build log less redundant, and refactor progress information code a bit, to make it also a bit less redundant.
#!/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"]