runtime/loglevels.py
author GP Orcullo <kinsamanka@gmail.com>
Fri, 10 Feb 2023 10:02:21 +0800
branchpython3
changeset 3786 50935528d313
parent 1973 cc7a46953471
permissions -rw-r--r--
allow passing environment variables to ProcessLogger
#!/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"]