runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Thu, 28 Sep 2023 18:28:07 +0200
changeset 3847 832c257d5618
parent 1973 cc7a46953471
permissions -rw-r--r--
IDE: connect local runtime with '127.0.0.1' instead of 'localhost'
Workaround localhost possibly resolving as ::1. leading to problems.
#!/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"]