runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Fri, 08 May 2020 16:47:52 +0200
branchsvghmi
changeset 2948 faaf677ea99d
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: Add an exslt function to collect used widget types, in order to only include necessary JS definitions in furure 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"]