runtime/loglevels.py
author Edouard Tisserant
Fri, 06 Mar 2020 14:42:08 +0100
branchsvghmi
changeset 2860 b7650c6abeda
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: more decoupling in between UI related and the rest of JS code, still in the aim of enhancing robustness under heavy load.
#!/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"]