runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 02 Nov 2020 10:56:09 +0100
changeset 2693 7ab2b5a18e65
parent 1973 cc7a46953471
permissions -rw-r--r--
Allow customization of generated py_ext OnChange calls, by adding a static method to PythonFileCTNMixin that can the be later hot patched.
#!/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"]