runtime/loglevels.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Mar 2019 12:09:41 +0300
changeset 2547 fc7de3c128cd
parent 1973 cc7a46953471
permissions -rw-r--r--
check_source.sh: fix sed error: -e expression #1, char 25: Invalid range end

Warning happen only if old sed (4.4) is used.
#!/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"]