runtime/loglevels.py
author Edouard Tisserant
Fri, 27 Nov 2020 18:06:34 +0100
branchsvghmi
changeset 3080 e5fa1f49f0b9
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: WIP trying to reduce memory usage : use .onclick onstead of SetAttribute, avoid useless closure and object creation when possible, etc.
#!/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"]