runtime/loglevels.py
author Edouard Tisserant
Wed, 18 Sep 2019 11:03:56 +0200
changeset 2635 ae099881d800
parent 1973 cc7a46953471
permissions -rw-r--r--
PLCobject: Call "stop" and "cleanup" methods from python runtime files in reverse order compared to "init" and "start".
#!/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"]