runtime/loglevels.py
author Edouard Tisserant
Thu, 18 Apr 2019 14:35:42 +0200
branchfix_PLC_runtime_shutdown
changeset 2604 c8a25a3a7f8b
parent 1973 cc7a46953471
permissions -rw-r--r--
Runtime worker : unblock the last waiting job and prevent any new job to wait when Main Worker is being shut down.
#!/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"]