runtime/loglevels.py
author Edouard Tisserant
Thu, 12 Apr 2018 22:20:38 +0200
changeset 1984 081265cda5b1
parent 1902 2b7e2db31d81
child 1973 cc7a46953471
permissions -rw-r--r--
Intermediate state while implementing runtime worker to ensure that PLCObject Load and Unload methods always run main thread.
#!/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"]