runtime/loglevels.py
author Edouard Tisserant
Wed, 09 Oct 2019 09:04:35 +0200
branchsvghmi
changeset 2793 2a97688c94c5
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: use func:function for parsing labels so that it can be used in predicates
#!/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"]