runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Tue, 29 Mar 2022 08:19:46 +0200
branchwxPython4
changeset 3444 91b2c014494e
parent 1973 cc7a46953471
permissions -rw-r--r--
IDE: in case of unhandled exception, write bug report to given log file, so that test report can have it.
#!/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"]