runtime/loglevels.py
author Edouard Tisserant
Tue, 11 Feb 2020 13:56:48 +0100
branchsvghmi
changeset 2834 6ac6a9dff594
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: be a bit more tolerant with missing HMI paths or missing elements in widgets : continue build (with warning) and fail silently at runtime.
#!/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"]