runtime/loglevels.py
author Edouard Tisserant
Tue, 18 Dec 2018 14:08:11 +0100
changeset 2470 590f85412835
parent 1973 cc7a46953471
permissions -rw-r--r--
Use another way to ensure compatibility with Py3 about text type.
#!/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"]