runtime/loglevels.py
author Edouard Tisserant
Thu, 28 Mar 2019 13:09:11 +0100
branchwx.NewID_abuse_fix
changeset 2580 9234abac093f
parent 1973 cc7a46953471
permissions -rw-r--r--
Enhanced statistics display code, used it and saw no more noticable leak while editing. Closing branch.
#!/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"]