runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Tue, 09 Feb 2021 07:55:16 +0100
branchsvghmi
changeset 3129 f2709923c82c
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: Add "lang" permament persistent HMI_LOCAL variable to reflect selected language, apply stored language choice at startup and make it always subscribed to a pseudo widget (as for hearbeat) that apply language choice when it changes.
#!/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"]