runtime/loglevels.py
author Edouard Tisserant
Thu, 17 Oct 2019 15:48:09 +0200
branchsvghmi
changeset 2799 f5da343b9b63
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: Many fixes. Subscriptions to HMItree seems to be working, and dispatch function is called in JS with good data. Bidirectional communication now really working.
#!/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"]