runtime/loglevels.py
author Edouard Tisserant <edouard@beremiz.fr>
Fri, 12 Jul 2024 11:24:06 +0200
changeset 3986 98bd0bb33ce4
parent 1973 cc7a46953471
permissions -rw-r--r--
MQTT: WIP, now connects to broker. Added MQTT 3 support and protocol version selection in IDE.
#!/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"]