runtime/loglevels.py
author Edouard Tisserant
Fri, 23 Feb 2018 11:16:25 +0100
changeset 1957 2d1cc4f5e4ef
parent 1902 2b7e2db31d81
child 1973 cc7a46953471
permissions -rw-r--r--
GetEditedElementInstancesInfos now optimized as well. Forgotten because not using [R.I.P]LibraryResolver, but still XSLT compiling was hapenning on each call.
#!/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"]