runtime/loglevels.py
author Edouard Tisserant
Mon, 30 Mar 2020 11:06:12 +0200
branchsvghmi
changeset 2905 3d7e3866cc51
parent 1973 cc7a46953471
permissions -rw-r--r--
SVGHMI: prevent man-made memory leak by limiting back button history items count to 42
#!/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"]