runtime/loglevels.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 16 Aug 2018 11:01:54 +0300
changeset 2288 5f59e898b2e4
parent 1973 cc7a46953471
permissions -rw-r--r--
Make ID in WAMP project match with ID PLC runtime.

See project_files/wampconf.json. ID for runtime is "wamptest". The
same id should be used in project's location URI: WAMP://127.0.0.1:8888#Automation#wamptest
#!/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"]