runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 10 Mar 2021 19:29:49 +0100
branchsvghmi
changeset 3181 50d0fef791d5
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: Add generic action buttons to JSON table, with an example in tests/svghmi: wipe alar list.
#!/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"]