runtime/loglevels.py
author Edouard Tisserant
Wed, 31 Jan 2018 11:29:17 +0100
changeset 1915 bdec3f1a40e7
parent 1902 2b7e2db31d81
child 1973 cc7a46953471
permissions -rw-r--r--
Better have globals passed to python extensions (-e) than locals.
#!/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"]