runtime/loglevels.py
author Mario de Sousa <msousa@fe.up.pt>
Thu, 13 Aug 2020 18:42:02 +0100
changeset 2687 c79c5d49ba34
parent 1973 cc7a46953471
permissions -rw-r--r--
Modbus plugin: fix runtime periodic timer (don't use POSIX timer)
#!/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"]