runtime/loglevels.py
author Edouard Tisserant
Thu, 20 Jan 2022 11:39:05 +0100
changeset 3420 da8cceaa247d
parent 1973 cc7a46953471
permissions -rw-r--r--
Runtime : force using monotonic time in Timer (threading). Prevent watchdog to trigger when changing system time.
#!/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"]