runtime/loglevels.py
author Mario de Sousa <msousa@fe.up.pt>
Sat, 06 Jun 2020 07:24:42 +0100
changeset 2657 41c34e7d196d
parent 1973 cc7a46953471
permissions -rw-r--r--
Modbus plugin web configuration: use drop down choices for baud, parity and stop bits.
#!/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"]