runtime/loglevels.py
author Edouard Tisserant
Fri, 08 Oct 2021 09:13:02 +0200
changeset 3335 c001c373f66c
parent 1973 cc7a46953471
permissions -rw-r--r--
Prevent exception when asking for CSV dump while variable traces are still empty
#!/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"]