runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 27 Dec 2021 19:21:59 +0100
branchRuntimeLists
changeset 3400 c2b46d0965ca
parent 1973 cc7a46953471
permissions -rw-r--r--
Fix bug introduced in previous commit : dual link list wasn't append and remove wasn't implemented correctly. Removed debug code, enhanced variable names and comments.
#!/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"]