runtime/loglevels.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 29 Jun 2018 15:36:34 +0300
changeset 2239 813792f22527
parent 1973 cc7a46953471
permissions -rw-r--r--
Make information about translation to be in unicode

This is necessary because some translator's names contains non-ASCII
characters and they are not handled properly in about dialog on Windows
#!/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"]