runtime/loglevels.py
author Edouard Tisserant
Mon, 26 Aug 2019 08:54:02 +0200
changeset 2632 534387caf43d
parent 1973 cc7a46953471
permissions -rw-r--r--
variable access code moved from plc_debug.c to targets/var_access.c for easiewr re-use in ext.
#!/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"]