runtime/loglevels.py
author Edouard Tisserant
Wed, 13 May 2020 14:47:17 +0200
branchsvghmi
changeset 2964 a7b11c9f468e
parent 1973 cc7a46953471
permissions -rw-r--r--
Added FatalError call to Libraries code gen, so that they can emit messages addressed like config tree nodes do.
#!/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"]