beremiz
Clone
Summary
Browse
Changes
Graph
Added FatalError call to Libraries code gen, so that they can emit messages addressed like config tree nodes do.
svghmi
2020-05-13, Edouard Tisserant
a7b11c9f468e
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"]