runtime/loglevels.py
author Mario de Sousa <msousa@fe.up.pt>
Thu, 28 Jan 2021 14:17:40 +0000
changeset 2721 367eb26972b1
parent 1973 cc7a46953471
permissions -rw-r--r--
modbus plugin: add (user accessible) transaction counters for servers/slaves
#!/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"]