runtime/loglevels.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sun, 13 Feb 2022 20:53:00 +0100
branchwxPython4
changeset 3423 84afcc0ebadd
parent 1973 cc7a46953471
permissions -rw-r--r--
IDE: Add -l or --log command line parameter to give a file where all content witten to console window will be appended. File can be /dev/stdout.
#!/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"]