runtime/loglevels.py
author Edouard Tisserant <edouard@beremiz.fr>
Tue, 06 Aug 2024 15:25:57 +0200
changeset 4003 65aae40f81dd
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: Fix watchdog not cleanly restarting browser because not waiting for stop operation to finish before restarting.
#!/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"]