runtime/loglevels.py
author Edouard Tisserant
Thu, 18 Apr 2019 14:32:43 +0200
branchfix_PLC_runtime_shutdown
changeset 2602 19dc6b830e7d
parent 1973 cc7a46953471
permissions -rw-r--r--
If call to GetPLCstatus can't be executed in PLC, then obtained status is disconnected. Status on "None" is not relevant anymore, and is replaced by Disconnected.
#!/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"]