runtime/loglevels.py
author Edouard Tisserant <edouard@beremiz.fr>
Tue, 20 Feb 2024 11:37:54 +0100
changeset 3892 1675b5533e9e
parent 1973 cc7a46953471
permissions -rw-r--r--
Fix argument lexer in ProcessLogger, replace it with shlex standard python module.
#!/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"]